Skip to content

Instantly share code, notes, and snippets.

@glowinthedark
Created February 26, 2022 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glowinthedark/d43d1ef5d674cb09824e5064ced937a6 to your computer and use it in GitHub Desktop.
Save glowinthedark/d43d1ef5d674cb09824e5064ced937a6 to your computer and use it in GitHub Desktop.
#!/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