JSON Functions
Parse, manipulate, and extract data from JSON structures.
> SELECT
JSON_VALUE('{"fruits": [{"apples": 5, "oranges": 10},
{"apples": 2, "oranges": 4}],
"vegetables": [{"lettuce": 7, "kale": 8}]}','$.fruits') AS string_array
[{"apples":5,"oranges":10},{"apples":2,"oranges":4}]
> SELECT
JSON_VALUE('{"fruits": [{"apples": 5, "oranges": 10},
{"apples": 2, "oranges": 4}],
"vegetables": [{"lettuce": 7, "kale": 8}]}','$.fruits[1].oranges')
AS string_array
10Last updated
