You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this open to change? I still have to reference this topic to explore JSON in JsonDicovery (which I love otherwise). It's just unintuitive to dig arbitrarily deep into a tree which is what I usually want to accomplish.
Continued from discoveryjs/JsonDiscovery#68.
Example
JSON
Filter As Tested
Current Workaroud
Result
Expected:
Like
$..one
in JSONPath or..|.one?
in jq (playgrounds linked):query..subquery
returns the query filtered by the subquery and recursively applies the filter to each child. (See use cases below.)Actual:
query..subquery
returns the query filtered by the subquery and recursively applies the filter to each result. (I'm curious about potential use cases.)Use Cases
Example JSON
Save Typing
Example:
..isarray
vs.dependencies.isarray
Quickly find an item (especially using the browser extension) without traversing its parent hierarchy.
Traverse Recursive Schemas
Example:
..isobject
vs..values().isobject
Find an item that may appear arbitrarily deep (dependencies have dependencies have dependencies and so on).
Align with Prior Art
The
..
operator has a history (documentation linked):The text was updated successfully, but these errors were encountered: