Say you’re doing a CURL request that returns some JSON. If you want to pretty-print it, here’s an easy way to do so:
curl http://some_host/action.json | python -m json.tool
Developer from somewhere
Say you’re doing a CURL request that returns some JSON. If you want to pretty-print it, here’s an easy way to do so:
curl http://some_host/action.json | python -m json.tool