the parser is 20 lines. then there's a function named print, then there's a for loop that extracts the fields. the last two lines of the readme are the example you're looking for:
$ ./j 'obj->"foo"' 'arr->1' 'obj->"baz"' <<< '{"foo":["bar",{"baz":"bat"}]}'
"bat"