freestrings / jsonpath

JsonPath engine written in Rust. Webassembly and Javascript support too

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty result for filter expression returns array of null

cburgmer opened this issue · comments

Selector: $[?(@.key==43)]

Input:

[{"key": 42}]

Expected output:

[]

Actual output:

[null]

Compare https://cburgmer.github.io/json-path-comparison/. For reference, the output was generated by the program in https://github.com/cburgmer/json-path-comparison/tree/master/implementations/Rust_jsonpath_lib.