A problem with piping curl output through "python -mjson.tool" is that you can't include the response headers, which is sometimes useful.<p>(This was enough of a problem for me that I wrote a simple curl replacement in Python so I could have pretty-printed JSON or XML <i>and</i> response headers, <i>or</i> send the response directly to a Python REPL console as an object: <a href="https://github.com/cobralibre/hotpotato" rel="nofollow">https://github.com/cobralibre/hotpotato</a> )