We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assume the following data:
{ "test": 12.34 }
compiling with $.test works.
$.test
However, when the root node is an array:
[{ "test": 12.34 }]
compiling with either $[0].test or $[:].test fails
$[0].test
$[:].test
The text was updated successfully, but these errors were encountered:
merged. and there are two cases needs to be fixed.
case "idx": if len(s.key) > 0 { // no key `$[0].test` obj, err = get_key(obj, s.key) if err != nil { return nil, err } } case "range": if len(s.key) > 0 { // no key `$[:1].test` obj, err = get_key(obj, s.key) if err != nil { return nil, err } }
I fixed case range branch.
case range
Sorry, something went wrong.
No branches or pull requests
Assume the following data:
compiling with
$.test
works.However, when the root node is an array:
compiling with either
$[0].test
or$[:].test
failsThe text was updated successfully, but these errors were encountered: