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.

No support for wildcard in JSON Path

See original GitHub issue

The documentation at https://prestodb.io/docs/current/functions/json.html refers to http://goessner.net/articles/JsonPath/ which has a wildcard example.

select json_extract('{"store": {"book": [{"author": "author0"},{"author": "author1"}]}}', '$.store.book[*].author');
Invalid JSON path: '$.store.book[*].author'

When I change this to a specific index, it works.

select json_extract('{"store": {"book": [{"author": "author0"},{"author": "author1"}]}}', '$.store.book[0].author');
   _col0   
-----------
 "author0" 

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:11
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
polvoazulcommented, Aug 1, 2017

Any news on that?

5reactions
electrumcommented, Jan 11, 2017

Wildcards are not supported. We should update the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wildcard in JsonPath - java - Stack Overflow
And looking for a way to use wildcards in the JSON path. I am using the RestAssured framework in Java. After executing the...
Read more >
JSON path syntax in detail - Assertible
Assertible's JSON Path syntax has limited support for wildcard syntax on JSON arrays and objects. IMPORTANT Assertible's JSON Path syntax supports wildcards in ......
Read more >
[BUG/Limitation]: Use wildcard in JSONPath express...
the wildcard functionality appears to work if you are asserting a specific json attribute value. It looks like ReadyAPI is treating the asterisk ......
Read more >
sql server - How to use JSON path wildcards in JSON_QUERY?
1 Answer 1 ... Looks like that is not currently supported, and would make a good feedback item. ... And from there you...
Read more >
JSONPath Expressions - MariaDB Knowledge Base
JSON Path Syntax ; Object member selector; Array element selector; Wildcard selector ;.memberName selects the value of the member with name memberName. ." ......
Read more >

github_iconTop Related Medium Post

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