Imprimir JSON Pretty Linux

echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool
Sahil Rally