Skip to Content
DocumentationTransformsExtract JSON Array to Sub-table

Extract JSON Array to Sub-table

Extracts each value in a JSON array to a row in a sub-table.

Example

idnamedata
1John["burger", "fries"]
2Jane["steak", "salad"]
idname
1John
2Jane

Sub-table with primary key id

idvalue
1burger
1fries
2steak
2salad

Configuration

Column

Select a column to parse as JSON arrays.

Operation

Extract Subtable should be selected for this transform.

Extract JSON Array transform configuration

Adding the Transform

  1. Select a column with JSON array data by clicking its column header in the table.
  2. Find Split JSON array transform under JSON group.

Alternatively, you can click on + Add Script Step on the right of the wrangler to find Split JSON array under JSON group.

Adding the Extract JSON array to sub-table transform

Key Considerations

  • This transform removes the original column from the main table.
  • Setting a primary key enables you to join the sub-table to the main table.
  • Each element of the array is extracted into its own row with the matching primary key value from the original record.
  • You cannot currently add transformations to a sub-table. To perform transformations in Etleap with sub-table data, we’d recommend creating a separate pipeline with your warehouse as the source and sub-table as your resource.