How to loop over sub-items

Describe the problem/error/question

I’ve a json with one entry and a lot of sub-entries:

I want to loop over data[0], data[1], and so on. But, n8n returns me full data entry, not its sub data[something] items.

How can I do that ?

Please share your workflow

Share the output returned by the last node

See image above.

Imported json look like this:

Information on your n8n setup

  • n8n version: 1.58.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): ?
  • Running n8n via (Docker, npm, n8n cloud, desktop app): railways cloud (Docker)
  • Operating system: ?

You can achieve this by splitting out the ‘data’ array into items, which can then be processed:

1 Like

Thank you !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.