Skip to content
Discussion options

You must be logged in to vote

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"]');

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@boson234
Comment options

@hashhar
Comment options

hashhar Jan 2, 2024
Collaborator

Comment options

You must be logged in to vote
3 replies
@boson234
Comment options

@hashhar
Comment options

hashhar Jan 2, 2024
Collaborator

@boson234
Comment options

Answer selected by hashhar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants