Create Array of Objects Using Function Nodes - n8n Workflow | Neura Market
Create Array of Objects Using Function Nodes
Demonstrates generating mock data as an array of objects and transforming it into a single structured array using n8n Function nodes.
This workflow showcases a simple yet powerful technique in n8n for creating and manipulating arrays of objects using the Function node. It starts with a 'Mock Data' Function node that outputs three sample items, each containing a JSON object with 'id' and 'name' properties (e.g., Jim, Stefan, Hans). The second 'Create an array of objects' Function node then aggregates these items into a single output item, where 'data_object' holds the full array of all incoming JSON objects.
The benefits are c
Platform
n8n
Category
Marketing
Price
$3.99
Creator
QualityWorkflows
n8n
function node
array
objects
javascript
data transformation
mock data
aggregation
code node
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.