mirror of
https://github.com/ervanalb/keygen.git
synced 2025-12-17 13:45:25 +00:00
put it all together into a JSON file
This commit is contained in:
12
bin/json_merge.py
Executable file
12
bin/json_merge.py
Executable 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))
|
||||
Reference in New Issue
Block a user