However it doesn’t behave like a normal array (which is preventing me from using some ES6 array functions, that otherwise work perfectly fine in n8n with manually created array structures). Shown below is also array2 which works perfectly fine with the array functions.
When I return the $items array, called array, you can see that json is added, which is not added to the manually created array, array2.
Please share the workflow
Would be grateful for any feedback on what needs to be done to $items to fix this issue!
When retrieving the $items() you get the full items array which contains json and binary data. If you then put this in a field you will simply get the full items array in that single field.
When creating your own array you also have that JSON key set but n8n will interpret your array and it gets split with the JSON data and binary data to show you both in the GUI.