Skip to content

Instantly share code, notes, and snippets.

@vadimkantorov
Created August 13, 2018 18:23
Show Gist options
  • Select an option

  • Save vadimkantorov/289df51d163e16edfe0be931ef4a52d8 to your computer and use it in GitHub Desktop.

Select an option

Save vadimkantorov/289df51d163e16edfe0be931ef4a52d8 to your computer and use it in GitHub Desktop.
Prettify json files in Python3 processing correctly UTF-8
# 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