Skip to content

Flatten JSON Array

Description

The Flatten JSON Array activity helps transform structured tabular data by expanding JSON arrays stored in one or more specified columns. It reads each row, extracts the array from the configured column(s), and flattens each array item into a new row while preserving all other fields.

This is useful when your data source (e.g., an API or a connector) provides one or more columns containing arrays of JSON objects, and you need to break them out into individual rows to support downstream activities like transformations, aggregations, or exports.

Example: Suppose you’re fetching order data from an API where each order includes a column named Items, which holds a list of purchased items in JSON format. You can use Flatten JSON Array to break out each item into its own row, making it easier to join, filter, or summarize line items later.

Input

  • Data – Required
    Requires tabular structured input where specific columns contain valid JSON arrays.

Output

Output TypeFormatNotes
DataTabularEach JSON object in the array is expanded into rows

Configuration Fields

Field NameDescription
JSON ColumnsList of column names that contain JSON arrays to flatten. Required field.

Sample Input

IdNameJsonArrayColumn
1Record A[{"Attr": "A1"}, {"Attr": "A2"}]
2Record B[{"Attr": "B1"}]

Sample Configuration

JSON Columns ["JsonArrayColumn"]

Sample Output

IdNameAttr
1Record AA1
1Record AA2
2Record BB1