Easily Format JSON Output from CURL
Add this to your shell config (ZSH and Mountain Lion tested) and source it.
function jsoncurl() {
curl "$@" | python -mjson.tool
}
Now you can quickly edit any provided curl commands by prepending json and removing the verbose (-v) and header (-i/-I) options.
Written by Kevin McFadden
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Curl
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#