forked from kennknowles/python-jsonpath-rw
-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels