CODE - How to do Single JSON File

Hi,
I’m trying to create a single JSON file but Move Binary makes multiple files with all items. Is there are way to get all items in a single file without adding it to a single object?

Here is an example

{
"type":
"NEW",
"color":
"blue"
},
{
"type":
"NEW",
"color":
"blue"
},
{
"type":
"NEW",
"color":
"blue"
},
{
"type":
"NEW",
"color":
"blue"
}

I’m not able to get a single file with this format. Can anyone help?
I have put together a sample function here:

Hi @jan I saw you did an example for the old Function node here. Do you know how to do it in the new Code node?

Solved it:

1 Like

Glad to hear you figured it out, thanks so much for sharing!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.