Add jsonDump to quickly dump prettier json

This commit is contained in:
2018-06-12 14:04:04 +02:00
parent 3fc9bede22
commit 844ae5c503
2 changed files with 10 additions and 0 deletions

10
jsonDump.py Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python3
import json
import sys
content = None
with open(sys.argv[1], 'r') as fh:
content = json.load(fh, encoding='utf-8')
print(json.dumps(content, indent=4, separators=(',', ': '), ensure_ascii=False))