JSON Formatting $ echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool # or $ sudo apt-get install -qy jq $ echo '{"foo": "lorem", "bar": "ipsum"}' | jq