The following queries provide results that do not match those of other implementations of JSONPath (compare https://cburgmer.github.io/json-path-comparison/): - [ ] `$[-1:]` Input: ``` ["first", "second", "third"] ``` Expected output: ``` ["third"] ``` Error: ``` parsing error ``` - [ ] `$[:]` Input: ``` ["first", "second"] ``` Expected output: ``` ["first", "second"] ``` Error: ``` parsing error ``` - [ ] `$[1:3]` Input: ``` ["first", "second", "third", "forth", "fifth"] ``` Expected output: ``` ["second", "third"] ``` Actual output: ``` ["second", "third", "forth"] ``` - [ ] `$[0:1]` Input: ``` ["first", "second"] ``` Expected output: ``` ["first"] ``` Actual output: ``` ["first", "second"] ``` - [ ] `$[?(@.key)]` Input: ``` [{"some": "some value"}, {"key": "value"}] ``` Expected output: ``` [{"key": "value"}] ``` Error: ``` parsing error ``` - [ ] `$.*` Input: ``` {"some": "string", "int": 42, "object": {"key": "value"}, "array": [0, 1]} ``` Expected output: ``` ["string", 42, {"key": "value"}, [0, 1]] ``` Actual output: ``` [[0, 1], 42, {"key": "value"}, "string"] ``` For reference, the output was generated by the program in https://github.com/cburgmer/json-path-comparison/tree/master/implementations/Rust_jsonpath.
The following queries provide results that do not match those of other implementations of JSONPath
(compare https://cburgmer.github.io/json-path-comparison/):
$[-1:]Input:
Expected output:
Error:
$[:]Input:
Expected output:
Error:
$[1:3]Input:
Expected output:
Actual output:
$[0:1]Input:
Expected output:
Actual output:
$[?(@.key)]Input:
Expected output:
Error:
$.*Input:
Expected output:
Actual output:
For reference, the output was generated by the program in https://github.com/cburgmer/json-path-comparison/tree/master/implementations/Rust_jsonpath.