Show path result mode #54
Labels
acceptance: go ahead
Reviewed, implementation can start
area: result
Improvements in query result reporting
help wanted
External contributions welcome
type: feature
New feature or request
Milestone
Is your feature request related to a problem? Please describe.
When we get a match of a query we know the exact path in the JSON at which it occurs – quite naturally, JSONPath is all about that.
There should exist a result mode that includes this information in the output.
Describe the solution you'd like
Consider the query
$.a..b[*]
, and the JSON:Then in the output we should find all the following paths, separated with newlines:
Additional context
Note that this request can be combined with other result modes, except for count. For example, it's easy to output both byte indices and full paths. The CLI should reflect that and allow combining paths with other result modes, where it makes sense.
The text was updated successfully, but these errors were encountered: