⬅︎ Back to jsonpprint - a Python script to format JSON data nicely
Using simplejson + Python2.5 or Python2.6 upwards:$ curl -s http://twitter.com/users/show/microsoft.json | json$ type jsonjson is aliased to `python -m json.tool'
That's awesome! No need to install a custom script. It's because of comments like this that I blog. Had I not jotted down my thoughts I wouldn't probably have learned about the simplejson tool.
I found it in the course of writing the exact same script you wrote. :) It's sweet that these things are bundled with a default Python install (along with -m SimpleHTTPServer etc.)David
Thanks David, this is really handy :)
Comment
Using simplejson + Python2.5 or Python2.6 upwards:
$ curl -s http://twitter.com/users/show/microsoft.json | json
$ type json
json is aliased to `python -m json.tool'
Replies
That's awesome! No need to install a custom script.
It's because of comments like this that I blog. Had I not jotted down my thoughts I wouldn't probably have learned about the simplejson tool.
I found it in the course of writing the exact same script you wrote. :) It's sweet that these things are bundled with a default Python install (along with -m SimpleHTTPServer etc.)
David
Thanks David, this is really handy :)