question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support JsonPath wildcard "$.*.author" and recursion "$..author" in whenIgnoringPath

See original GitHub issue

Read 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lukas-krecancommented, Oct 15, 2019

Released in 2.10.0 - supported only in AssertJ API

0reactions
RobertDiebelscommented, Oct 17, 2019

@lukas-krecan Great! Thanks a bunch!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found