zsh pretty print json curl response and save to file code example Example: print json pretty linux echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool