Forty exports, and one file wanted

DataFileConverter » Use cases » Merge JSON and XML exports

Download DataFileConverter Free Trial »     Buy DataFileConverter Now »

The situation

An export ran per month, per region or per shard, and left a folder of files: twelve JSON files, or a few hundred XML documents. The next step - a report, an import, a colleague - wants one file, not forty.

Concatenating them naively gives the wrong result: JSON files each have their own array brackets, XML files each have their own root element, and even CSV files repeat their header row. The job is to combine the data, with one header and one schema, not to append the files.

What you do

  1. Point DataFileConverter at the folder of exports (JSON, XML, CSV or Excel).
  2. Choose the combine/merge conversion and pick the destination format - one CSV, one Excel sheet or one JSON file.
  3. Check the preview: the columns from all the files line up under a single header, and the rows follow.
  4. Convert, and save the task as a session if the same folder arrives again next month.

Combining a folder of JSON files into one output file with DataFileConverter

Because the merge happens at the data level, the output has one header and one schema rather than forty of each. Everything runs locally, and the source files are left untouched.

What it will not do

Related

Merging in the browser: merge JSON files, merge XML files. Guide: merging JSON files into one CSV. Plain-text merges: TextMerger. Batch conversion without merging: batch convert.