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
For Example
The following inputs generate no result JSON: [{"a":1,"b":"X"},{"a":2,"b":"Y"},{"a":3,"b":"Z"}] EXPR: $[?(@.a==1)][0]
The text was updated successfully, but these errors were encountered:
For a concrete example:
JsonPath.read("[{\"x\":\"a\"}, {\"x\":\"b\"}]", "[?(@.x == 'a')]")
returns:
[{x=a}]
but
JsonPath.read("[{\"x\":\"a\"}, {\"x\":\"b\"}]", "[?(@.x == 'a')][0]")
returns
[]
We would expect it to return
{"x"="a"}
This appears to happen when you do an index selection directly after a filter.
Sorry, something went wrong.
Are there any workaround to achieve this value?
Duplicate of #272
No branches or pull requests
For Example
The following inputs generate no result
JSON: [{"a":1,"b":"X"},{"a":2,"b":"Y"},{"a":3,"b":"Z"}]
EXPR: $[?(@.a==1)][0]
The text was updated successfully, but these errors were encountered: