You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
Hi... this is a helpful comparison. I had really misunderstood what the second argument of the slice operator does! I've checked the implementation against Python which I think is the standard implementation of this.
The only thing I'm not able to do immediately is extend/rewrite the parser to support the multiple string index implementation.
This project is now marked as abandoned and suggests using softcreatr/jsonpath as a replacement. If you think this issue is still relevant please open a new ticket under the new project.
The following queries provide results that do not match those of other implementations of JSONPath
(compare https://cburgmer.github.io/json-path-comparison/):
$[:2]
Input:
Expected output:
Actual output:
$[1:3]
Input:
Expected output:
Actual output:
$[0:3:1]
Input:
Expected output:
Actual output:
$[0:4:2]
Input:
Expected output:
Actual output:
$[0:1]
Input:
Expected output:
Actual output:
$['key','another']
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/PHP_flow-jsonpath.
The text was updated successfully, but these errors were encountered: