Skip to content

Instantly share code, notes, and snippets.

@jonbalbarin
Created April 20, 2011 14:35
Show Gist options
  • Save jonbalbarin/931499 to your computer and use it in GitHub Desktop.
Save jonbalbarin/931499 to your computer and use it in GitHub Desktop.
pretty print json
#in .bash_profile...
function prettyjson
{
if [ $1 ]; then
curl -s $1 | python -mjson.tool
else
echo "specify a url";
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment