Function

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

Effortlessly transform nested JSON arrays into individual n8n items using Functions, boosting automation speed and simplifying data processing.

Loading visualization...

Get This Workflow

Free n8n workflow template ready to import

Share on social

📄 File Details

1124_Create.json
Create
09/04/2025
Ready to Import

Just upload and configure

🔧
Production Ready

Tested and optimized

📚
Documentation

Complete setup guide

Don’t feel like building from scratch?

Try a prebuilt agent—white label friendly when you’d rather ship than reinvent the wheel.

Best AI Customer Support Agents

Noem AI

White Label

White Label AI Chatbot

View Agent

Thrive Desk

Helpdesk

White Label AI Helpdesk

View Agent

AnyChat

Chat

White Label Chat Widgets

View Agent

Support Board

Support

White Label 24/7 Helpdesk

View Agent

Best AI Marketing Agents

NexuScale

Leads

AI 24/7 B2B Leads Agent

View Agent

WriterZen

SEO

SEO Content Agent

View Agent

Sendr

Lead Gen

Personalised Lead Generation Agents

View Agent

Best HR Agents

XInterview

Hiring

White Label AI Interview & Hiring Agent

View Agent

*Some partner links help keep these workflows free. We only recommend agents we’ve demoed and would trust with client work.

Loading target audience...
Loading security notes...
Loading compatibility...

Services & Integrations

Function
Loading FAQ...

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
Loading checklist...

Personal Strategy Session

Let's build your automation strategy

Book a one-on-one session with me to review your current systems and identify the automation opportunities that will actually move the needle for your business.

  • Find where automation can save you the most time
  • Build a practical plan you can actually implement
  • Walk away with clear next steps and priorities
No Code Agents community

Join the Collective

No Code Agents

A leading community of AI builders, automation pros, and vibe coders shipping fast with access to premium knowledge and deals in one place.

Join Now!

stay up to date with the latest in generative AI building

Ready to transform your business?