How do I query the direct child of a JSON element? #4051
-
|
I have JSON data from Pixiv I want to filter if it has a numeric object value, and a child with aiType=2. Example JSON Desired result: AttemptsI am able to select the numeric element value using regex. Expression Result However, when I try to add my query for filtering I get no results. (Presumably because it's filtering one layer deeper than I would like) If I repeat the numeric attribute expression, all of the values are filtered if any of the children match. I'm not able to use How can I query the direct child of the JSON element I am filtering on? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I am not able to make it work with official JSONPath spec using https://jsonpath.com/, for example Unless I missed something in the spec, will need to think of extending the syntax to allow for this sort of cases. |
Beta Was this translation helpful? Give feedback.
Wait, this seems to work?