Hi, i have a question: My Request gives me a Json with maybe 15 Entries (Now they are in 1 Entry).
How can i split then here to get 15 Jsons ?
On the Yellow Mark i want to spllit.
Thanks,
Stefan
Hi, i have a question: My Request gives me a Json with maybe 15 Entries (Now they are in 1 Entry).
How can i split then here to get 15 Jsons ?
On the Yellow Mark i want to spllit.
Thanks,
Stefan
That can be done like in this topic:
Yes, i looks so, but i get an error. It think i must define the right part of json ?
My Output looks so:
Any Idea ?
Yes exactly. You would have to change it for your specific case. In the linked topic the data was directly on the top-level (so directly under json). That is why the code in the node is
const newItems = [];
for (const element of items[0].json) {
newItems.push({json: element});
}
return newItems;
In your case it is one level deeper under “results”. So you would have to change it to something like:
const newItems = [];
for (const element of items[0].json.results) {
newItems.push({json: element});
}
return newItems;