prettify JSON

To pretty print JSON output you can use the command line...

so any cURL request returning JSON can be piped to python:

curl http://somesite.com/cont/res/ | python -m json.tool

or

cat somefile.json / python -m json.tool

Comments

  1. NB it won't display in the order it appears in the file...

    ReplyDelete

Post a Comment

Popular posts from this blog

Indesign scripting - negative object reference

cURL to REST API