json formatter command line code example Example: format json command line echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool