Split Items of Sub-Array in N8N

PHOTO EMBED

Mon Aug 23 2021 16:58:23 GMT+0000 (Coordinated Universal Time)

Saved by @jhambach #n8n #halo #json

const results = []

for (const item of items[0].json["users"]) {

      results.push({
        json: item
      })
    
}

return results;
content_copyCOPY

the ["users"] array is the sub-array that you wish to split. Replace with the appropriate array when using.