with json_table as (
select
JSON(
'{
"first": "Matt",
"last": "Forrest",
"age": 35,
"cities": ["Minneapolis", "Madison", "New York City"],
"skills": {"SQL": true, "Python": true, "Java": false}
}'
) as data
)
select
data
from
json_table
with json_table as (
select
JSON(
'{
"first": "Matt",
"last": "Forrest",
"age": 35,
"cities": ["Minneapolis", "Madison", "New York City"],
"skills": {"SQL": true, "Python": true, "Java": false}
}'
) as data
)
select
data -> 'cities' -> 1 as city,
data -> 'skills' -> 'SQL' as sql_skills
from
json_table