Combine multiple json files into one json file

Describe the issue/error/question

I would like to read multiple json file from the local disk and then combine all the json data from all the files into one main json data file.

What is the error message (if any)?

I am not getting any error but I have been trying to use read binary files and convert into json and then use merge node to merge but somehow i cant write the data into one file by appending all the data. It kind of overwrites the fresh data on top of old data

Please share the workflow

Hey @Anoop_Kiran_Angadi_M, your Merge node uses the Append mode which simply appends data of two inputs after each other.

You probably want to use Merge By Index mode instead. Check out this example:

The result is a single JSON object in the final file.