Open this example in the interactive library
Source code
SELECT fullkey,atom FROM json_tree('{"a":[1,2]}') WHERE atom IS NOT NULL;
Sample output
[
{
"fullkey": "$.a[0]",
"atom": 1
},
{
"fullkey": "$.a[1]",
"atom": 2
}
]
Open this example in the interactive library
SELECT fullkey,atom FROM json_tree('{"a":[1,2]}') WHERE atom IS NOT NULL;
[
{
"fullkey": "$.a[0]",
"atom": 1
},
{
"fullkey": "$.a[1]",
"atom": 2
}
]