Extracting Nested data from "data": [ ]

If you’re a newbie like I was when I started with this it can be hard to understand nested data and how to get it out. E,g a Twitter response often looks like “data”: [ item, item, item,] which needs to be separated to use in N8N. Here is a simple solution: add a function node with:

const manyItems = items[0].json.data;
return manyItems;

Then you’ll get all the items :slight_smile:

1 Like