if you use json a lot, this is super useful for prettifying stuff in command line.

echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool