Support JsonPath wildcard "$.*.author" and recursion "$..author" in whenIgnoringPath
See original GitHub issueRead the documentation, maybe we already have the feature
Is your feature request related to a problem? Please describe. Limited implementation of JSONPath.
Describe the solution you’d like
The JSONPath matcher seems to be limited to the use of an any-element-in-array matcher ([*].
).
We’d like a any-key-in-object matcher ($.*.author
) and a recursive matcher ($..author
). This would allow us to ignore keys at our desired depths without having to specify the exact keys where a author
key might be present.
Describe alternatives you’ve considered
Specifying the exact keys for each depth where a author
key might be present.
Additional context None.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
JSONPath Syntax | AlertSite Documentation
Always returns a list, even if just one property is found. *. Wildcard selects all elements in an object or an array, regardless...
Read more >No support for wildcard in JSON Path #7005 - prestodb/presto
When I change this to a specific index, it works. select json_extract('{"store": {"book": [{"author": "author0"},{"author": ...
Read more >JSONPath -- XPath for JSON - IETF Datatracker
1.3. Overview of JSONPath Expressions ; *, *, wildcard. All objects/elements regardless of their names. ; @, n/a, attribute access. JSON data ...
Read more >JSONPath - XPath for JSON - stefan.goessner
JSONPath allows the wildcard symbol * for member names and array indices ... "author": "J. R. R. Tolkien", "title": "The Lord of the...
Read more >What JsonPath expressions are supported in BigQuery?
Is it possible to use wildcards and filters in JsonPath expressions in ... "author": "Nigel Rees", "title": "Sayings of the Century", ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released in 2.10.0 - supported only in AssertJ API
@lukas-krecan Great! Thanks a bunch!