No support for wildcard in JSON Path
See original GitHub issueThe 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:
- Created 7 years ago
- Reactions:11
- Comments:18 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top 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
Any news on that?
Wildcards are not supported. We should update the documentation.