$..[?(@.type=="li")]
I basically want the first type==li item in that whole object.
The example works on http://jsonpath.com/ but Node's jsonpath returns into an endless recursion :(
RangeError: Maximum call stack size exceeded
at is_object (node_modules/jsonpath/lib/handlers.js:183:23)
at Handlers.<anonymous> (node_modules/jsonpath/lib/handlers.js:210:18)
at node_modules/jsonpath/lib/handlers.js:220:13
at Array.forEach (native)
at Handlers.<anonymous> (node_modules/jsonpath/lib/handlers.js:217:26)
at node_modules/jsonpath/lib/handlers.js:220:13
at Array.forEach (native)
at Handlers.<anonymous> (node_modules/jsonpath/lib/handlers.js:217:26)