I’ve been doing some work with RabbitMQ lately, and have been doing some testing against its HTTP-based API, which returns results in JSON. If you’re looking to pretty-print a JSON response for easier viewing, here’s a nice way to do it at the command line using Python and json.tool:

curl http://username:pass@hostname:55672/api/overview | python -m json.tool



Comments

comments powered by Disqus