Skip to content

Instantly share code, notes, and snippets.

@iamalbert
Created May 5, 2016 08:31
Show Gist options
  • Save iamalbert/01e6fed0a59c701ad3c97d3f64f54feb to your computer and use it in GitHub Desktop.
Save iamalbert/01e6fed0a59c701ad3c97d3f64f54feb to your computer and use it in GitHub Desktop.
# Json Pretty Print
json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4)
# Json Print Entities instead of \uXXXX
json.dumps({'4': 5, '6': 7}, sort_keys=True, indent=4, ensure_ascii=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment