Tomas 'Jethro' Pokorny
4 years ago
1 changed files with 12 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
#!/usr/bin/python3 |
|||
|
|||
import json |
|||
import argparse |
|||
|
|||
parser = argparse.ArgumentParser() |
|||
parser.add_argument("input", type=argparse.FileType('r', encoding='utf-8')) |
|||
parser.add_argument('output', type=argparse.FileType('w', encoding='utf-8')) |
|||
args = parser.parse_args() |
|||
|
|||
data = json.load(args.input) |
|||
json.dump(data, args.output, ensure_ascii=False, sort_keys=True, indent='\t') |
Loading…
Reference in new issue