JSON_EACH

Expands the top-level JSON object into a set of key-value pairs.

Analyze Syntax

func.json_each(get_column(table, 'data'))

Analyze Examples

func.json_each(get_column(table, 'data'))

SQL Syntax

JSON_EACH(<data>)

SQL Examples

SELECT * FROM TABLE(JSON_EACH(PARSE_JSON('{"a":1,"b":2}')));

┌─────┬───────┐
 key  value 
├─────┼───────┤
 a    1     
 b    2     
└─────┴───────┘