Created
February 26, 2022 22:53
-
-
Save glowinthedark/d43d1ef5d674cb09824e5064ced937a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import sys | |
data = json.load(open(sys.argv[1])) | |
out = len(sys.argv) > 2 and open(sys.argv[2], 'w') or sys.stdout | |
print(json.dumps(data, indent=1, ensure_ascii=False), file=out) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment