n8n-docs/docs/data/transforming-data.md
2022-04-13 09:56:05 +01:00

18 lines
928 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Transforming data
n8n uses a predefined [data structure](/data/data-structure/) that allows all nodes to process incoming data correctly.
Your incoming data may have a different data structure, in which case you will need to transform it to allow each item to be processed individually.
For example, the image below shows the output of an [HTTP Request](/integrations/core-nodes/n8n-nodes-base.httpRequest/) node that returns data incompatible with n8ns data structure. The node returns the data and displays that only one item was returned.
![HTTP Request node output](/_images/data/transforming-data/HTTPRequest_output.png)
To transform this kind of structure into the n8n data structure you will have to use the Item Lists node.
!!! note
If youre using the HTTP Request node, you should use the Split Into items option to transform the data. You dont have to use a Function node in that case.