Skip to content

Returns the keys of the top-level JSON object as a JSON array.

func.json_keys(get_column(table, 'data'))
func.json_keys(get_column(table, 'data'))
┌────────────────┐
["name","age"]
└────────────────┘
JSON_KEYS(<data>)
SELECT JSON_KEYS(PARSE_JSON('{"name":"Alice","age":30}'));
┌────────────────┐
│ ["name","age"] │
└────────────────┘