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
The following code:
from jsonpath_ng import parse jsonpath_expr = parse('$..*') [f"{match.path}" for match in jsonpath_expr.find({"list":[{"prop1":"val1"},{"prop2":"val2"}]})]
returns a list with 3 items:
['list', 'prop1', 'prop2']
I would expect it to return 5 items something like:
['list', '[0]', 'prop1', '[1]', 'prop2']
It is returning the array, and the values within the properties within objects within the array, but not the objects themselves.
The specification article says "all Elements in XML document. All members of JSON structure."
Other implementations return 5 items as well.
The text was updated successfully, but these errors were encountered:
This should be fixed by using the ext right?
from jsonpath_ng.ext import parse
Sorry, something went wrong.
This should be fixed by using the ext right? from jsonpath_ng.ext import parse
I just tried this and still got the same result.
No branches or pull requests
The following code:
returns a list with 3 items:
I would expect it to return 5 items something like:
It is returning the array, and the values within the properties within objects within the array, but not the objects themselves.
The specification article says "all Elements in XML document. All members of JSON structure."
Other implementations return 5 items as well.
The text was updated successfully, but these errors were encountered: