Hi. I receive some JSON data and want to write it into a file. So first I use the Move JSON to Binary node and the apply Write Binary File.
The problem is that the “Move” node generates multiple binary items which are written then one by one to the file. So the file stores only the last record. And i need just one binary outcome which contains the whole array of data.
@RicardoE105 Thank you! What is the best way to decode it back to an array? It looks like that I have to take just the first item and get the array back. When I use a Function node like
return items[0];
I receve ERROR: Always an Array of items has to be returned!
After you write to the file system, you can use the Move Binary Data again, but using Binary to JSON, and finally use a function node to convert it into multiple items.