ParseJSON
Last updated
Was this helpful?
Last updated
Was this helpful?
Parse JSON offers the ability to flatten or explode JSON objects from one JSON column into new broken out columns in your dataset. You can also select the max level to flatten if you want to flatten to deeper levels in the JSON string.
Any JSON array can be parsed via explode or flatten.
Flatten
Flattening converts nested JSON objects into a flat structure
Explode
Exploding means creating separate rows for each object in the array
Max level to flatten
This setting is asking how many levels deep the tool should go to flatten nested JSON structures. JSON data can be nested, meaning objects can contain other objects or arrays. Flattening means converting this nested structure into a flat table-like structure.
Let's say we have a table with a "Hierarchy" column that contains a JSON array:
We can choose to flatten the "Hierarchy" column and it will get the following result with a new "Category" column:
Let's say we have a table with a "Size" column that contains a JSON array:
We can choose to explode the "Size" column and it will get the following result with a new "Size_1" column: