Pretty print json output
Need to debug a JSON based api and want to render the output a lot more readable? Use the standard python json module of that!
curl https://you.api.server/endpoint.json | python -m json.tool
Will output the JSON nicely, apply indenting etc.
Written by Frank Louwers
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#