What query would transpose the following JSON value to multiple rows. Examples with nested JSON objects are sparse.
[{"a":{"b":"val", "c":1}},{"a":{"b":"val", "c":4}}]
Tried combinations of JSONExtract
but having difficulty with nested object
What query would transpose the following JSON value to multiple rows. Examples with nested JSON objects are sparse.
[{"a":{"b":"val", "c":1}},{"a":{"b":"val", "c":4}}]
Tried combinations of JSONExtract
but having difficulty with nested object
2
Answers
take a look at this
https://clickhouse.com/docs/knowledgebase/importing_and_working_with_JSON_array_objects
see if that helps
You can use JSONEachRow format to read an array of objects. Nested object ("a" : {…}) can be read into:
Note: JSON type is still experimental and using it can lean to unexpected bugs.