put it all together into a JSON file

This commit is contained in:
Eric Van Albert
2017-06-17 20:40:21 -04:00
parent a5a7976a0e
commit 42aa34d81c
2 changed files with 17 additions and 3 deletions

12
bin/json_merge.py Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env python3
import sys
import json
def read_json_file(fn):
with open(fn) as f:
return json.load(f)
combined = [read_json_file(fn) for fn in sys.argv[1:]]
print(json.dumps(combined))