Created
August 13, 2018 18:23
-
-
Save vadimkantorov/289df51d163e16edfe0be931ef4a52d8 to your computer and use it in GitHub Desktop.
Prettify json files in Python3 processing correctly UTF-8
This file contains hidden or 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
| # prettifyjson input.json > output.json | |
| alias prettifyjson='python3 -c "import json, sys; json.dump(json.load(open(sys.argv[1])), sys.stdout, ensure_ascii = False, indent = 2)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment