Skip to content

Instantly share code, notes, and snippets.

@adityaiitb
Created August 22, 2020 17:27
Show Gist options
  • Save adityaiitb/46773b71b14eec4a4adccffc5c6d54f4 to your computer and use it in GitHub Desktop.
Save adityaiitb/46773b71b14eec4a4adccffc5c6d54f4 to your computer and use it in GitHub Desktop.
Pretty print JSON from the command line

The json.tool module provides a simple command line interface to validate and pretty-print JSON objects. link

python -m json.tool foo.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment