ParseJSON

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.

Option
Description

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.

Note that when entering the number of levels to flatten, If left blank, the tool will normalize all levels. If JSON cannot be flattened at the level selected, tool will return nothing.

Example 1 (Flatten)

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:

Example 2 (Explode)

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:

Last updated

Was this helpful?