Monthly Archives: January 2014

Pretty printing json

Here is a really simple way to pretty print some unformatted json $ echo ‘{"foo": "lorem", "bar": "ipsum"}’ | python -mjson.tool   {       "bar": "ipsum",       "foo": "lorem"   }

Posted in bash, python | Comments Off on Pretty printing json