Formatting JSON from command line
So when working on REST services that return JSON, I often hit them from command line using curl. If the JSON message that is returned is rather large, it can be a pain to read. Python provides a nice little tool though for formatting it. You can pipe a JSON message returned from a curl to it like so:curl http://my.rest.service.org | python -mjson.tool | less
-
foundationex liked this
-
developed6ok liked this
-
verycrispy posted this
Short URL for this post: http://tmblr.co/Zd8FQxE1CLNe