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