OZ
Table:
load '[
{
"date": "2019-04-03",
"agency": "aaa",
"revenue": {"ar": "ay", "ncy": 52}
},
{
"date": "2019-04-03",
"agency": "bbb",
"revenue": {"ag": "aty", "ncy": 5}
}
]' as JSON
AutoGenerate (1);
tab:
load *
FROM_FIELD
(Table, JSON)
(json, utf8, no labels);
drop table Table;
tab2:
load *
FROM_FIELD
(tab, revenue)
(json, utf8, no labels);