Open
Description
Hi! I'm not entirely sure if this is supposed to work (though I think it would be intuitive and ergonomic if it would):
data = [
{"payload": {"type": "A"}},
{"payload": {"type": "B"}},
{"payload": {"type": "C"}},
]
print(jsonpath.findall('$[*].payload[?(@.type == "B")]', data))
This gives you an empty list, when instead I would expect it to be equivalent to the result of this (working) version:
print(jsonpath.findall('$[?(@payload.type == "B")].payload', data))
Metadata
Metadata
Assignees
Labels
No labels