Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions combine_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
import sys

def combine_json_files(output_file, input_files):
'''
Combines multiple properly formatted JSON files into a single JSON file.
Each input file should contain a JSON array of objects. The combined output will be a single
JSON array containing all objects from the input files.

Parameters:
output_file (str): The path to the output JSON file.
input_files (list (str)): A list of paths to the input JSON files.

Returns:
None
'''
combined_data = []

for file in input_files:
Expand Down
Loading