n8n-workflows/workflows/766_workflow_766.json
2025-05-14 11:58:29 +03:00

41 lines
962 B
JSON

{
"nodes": [
{
"name": "Mock Data",
"type": "n8n-nodes-base.function",
"position": [
670,
371
],
"parameters": {
"functionCode": "return [\n {\n json:[\n {\n id: 1,\n name: \"Jim\"\n }, \n {\n id: 2,\n name: \"Stefan\"\n },\n {\n id: 3,\n name: \"Hans\"\n }\n ]\n }\n];"
},
"typeVersion": 1
},
{
"name": "Create JSON-items",
"type": "n8n-nodes-base.function",
"position": [
910,
371
],
"parameters": {
"functionCode": "return items[0].json.map(item => { \n return {\n json: item,\n }\n})\n"
},
"typeVersion": 1
}
],
"connections": {
"Mock Data": {
"main": [
[
{
"node": "Create JSON-items",
"type": "main",
"index": 0
}
]
]
}
}
}