-
I have a json string,it looks like json '{"id.a": 1, "value": "xxx"}' , |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Maybe, you have to escape like below. SELECT json_extract_scalar(json '{"id.a": 1, "value": "xxx"}', '$."id.a"'); I don't confirm the above query actually works. But, it will work. |
Beta Was this translation helpful? Give feedback.
-
You have to escape special characters in JSON path expressions using square brackets and quotes: SELECT json_extract_scalar(json '{"id.a": 1, "value": "xxx"}', '$["id.a"]'); |
Beta Was this translation helpful? Give feedback.
You have to escape special characters in JSON path expressions using square brackets and quotes: