{ "nodes": [ { "name": "Run the example", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ 300, 300 ], "parameters": {}, "id": "split-example-array-into-items-0" }, { "name": "Mock Data", "type": "n8n-nodes-base.function", "position": [ 550, 300 ], "parameters": { "functionCode": "return [{json:[\"item-1\", \"item-2\", \"item-3\", \"item-4\"]}];" }, "typeVersion": 1, "id": "split-example-array-into-items-1" }, { "name": "Function", "type": "n8n-nodes-base.function", "position": [ 750, 300 ], "parameters": { "functionCode": "return items[0].json.map(item => {\n return {\n json: {\n data:item\n },\n }\n});\n" }, "typeVersion": 1, "id": "split-example-array-into-items-2" } ], "connections": { "Mock Data": { "main": [ [ { "node": "Function", "type": "main", "index": 0 } ] ] }, "Run the example": { "main": [ [ { "node": "Mock Data", "type": "main", "index": 0 } ] ] } }, "name": "Split an Example Array into Items", "active": false, "pinData": {} }