1 CREATE OR REPLACE TABLE persons AS
2 SELECT column1 as id, parse_json(column2) as c
3 FROM values
4 (12712555,
5 '{ name: { first: "John", last: "Smith"},
6 contact: [
7 { business:[
8 { type: "phone", content:"555-1234" },
9 { type: "email", content:"j.smith@example.com" } ] } ] }'),
10 (98127771,
11 '{ name: { first: "Jane", last: "Doe"},
12 contact: [
13 { business:[
14 { type: "phone", content:"555-1236" },
15 { type: "email", content:"j.doe@example.com" } ] } ] }') v;