Skip to content

Instantly share code, notes, and snippets.

@yurrriq
Created May 29, 2014 14:09
Show Gist options
  • Save yurrriq/0474f1ffc8c2296af540 to your computer and use it in GitHub Desktop.
Save yurrriq/0474f1ffc8c2296af540 to your computer and use it in GitHub Desktop.
Maybe if I write this out here, I'll never again forget how to pretty print JSON on the command line using Python.
#!/bin/bash
echo '{"print":"pretty"}' | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment