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