Flatten nested JSON lists with Parser

Recipe ToolsMarketingData ParserUtilities

What it does

When a scheduled trigger runs every 5 minutes, this automation parses JSON source data containing nested arrays. It maps nested items with parent attributes and flattens them into a single-level list ready for use.

Who it's for

Data and analytics teams who need to flatten nested list structures for reporting or integration.

How teams use this

Flatten order line items with customer data

Transform a list of customers with nested order arrays into a flat list where each row is one order paired with its customer name and ID. Reports and exports work on flat data.

Prepare nested API responses for a database

Flatten JSON responses from an API that returns nested objects so each nested item becomes its own row in a database table with parent identifiers included.

Add filtering to nested list flattening

Extend the mapper step to filter nested items by a condition, such as only flattening orders above a certain amount or records with a specific status.

How it works

  1. Run on a schedule. This automation starts every 5 minutes so nested list data is flattened on a regular cadence without manual intervention.
  2. Parse the source JSON. Json Parser reads the JSON document containing the list of lists and nested arrays so the structure is readable for mapping.
  3. Map nested items with parent data. Use the mapper to associate each nested list item with an attribute from its parent record into a new structured list.
  4. Flatten the mapped list. Json Parser processes the output from the mapper to flatten the nested structure into a single-level list ready for downstream systems.