Open
Description
While trying out different filters, I noticed the following:
- Filtering with @Property works intuitively.
JSONPath({ path: '$.[?(@property === "appName" && @ === "app1")]^', json: { "version": 1, "appName": "app1" }, wrap: false });
The json passes filter and gets returned
{"version":1,"appName":"app1"}
- The same thing with @.<property_name> filters out above json.
JSONPath({ path: '$.[?(@.appName === "app1")]^', json: { "version": 1, "appName": "app1" }, wrap: false });
This returns
undefined
Is this behaviour expected? If yes, can we add a couple of more examples to documentation?