Split Single Item's JSON Array into Multiple n8n Items

Function
Manual Trigger

This workflow demonstrates how to transform a single n8n item that contains an array of JSON objects into multiple individual n8n items. The initial 'Mock Data' Function node simulates a common scenario where a preceding node might output data in a nested format, such as a list of records within one primary item. The subsequent 'Create JSON-items' Function node then processes this nested structure. It iterates through the array of JSON objects found within the 'json' property of the first incoming item. For each object in that array, it generates a new, separate n8n item, with the individual JSON object assigned to the 'json' property of the new item. This process effectively 'flattens' or 'unnests' the data, making each record accessible as an independent n8n item, which is often required for subsequent processing by other n8n nodes. This pattern is useful when an API or data source returns a collection of data as a single payload, and you need to process each element of that collection independently.

2
Nodes
1
Services
2
Categories
Manual
Type

Get This Workflow

Free n8n workflow template ready to import

Share on social

File Details

Filename
1124_Create.json
Category
Create
Updated
09/04/2025

Services & Integrations

Function

Interactive Workflow Diagram

Official n8n visualization • Click and drag to explore

Loading workflow visualization...

Official n8n visualization

How to Use This Workflow

1

Download the Workflow

Click the "Download Workflow" button above to get the JSON file.

2

Import to n8n

In your n8n instance, go to Workflows → Import and select the JSON file.

3

Configure Credentials

Set up your Function and other service credentials in n8n.

4

Activate & Test

Activate the workflow and test it to ensure everything works correctly.

Tags

#create
#function
#manual
#create
#workflow-automation

Ready to transform your business?