Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.9.4
-
Tested on Windows but would assume it affects all platforms
Description
According to https://mariadb.com/kb/en/jsonpath-expressions/ a path expression with special characters can be quoted as shown below. But doing so returns NULL rather than the JSON data it should. Example is hierarchy from a Chrome Lighthouse report.
SET @json = '{"audits":{"first-contentful-paint":{}}}' ; |
 |
SELECT
|
JSON_VALID(@json),
|
JSON_QUERY(
|
@json,
|
'$.audits' |
),
|
JSON_QUERY(
|
@json,
|
'$.audits."first-contentful-paint"' |
),
|
1;
|
Attachments
Issue Links
- duplicates
-
MDEV-29381 JSON paths containing dashes are reported as syntax errors in procedures
- Closed
-
MDEV-29586 JSON_VALUE and JSON_EXTRACT doesn't handle special characters
- Closed