JSON pretty-print bash alias

Posted on

JSON pretty-print bash alias (nifty little snippet):

alias pp='python -mjson.tool'

Example:

~$ echo '{"test": "whoa!"}' | pp
{
    "test": "whoa!"
}

Leave a Reply

Your email address will not be published.