Pretty JSON
Here are some options for pretty printing your JSON:
-
Copy/Paste - Without installing anything, just paste it into JSONLint
-
Ruby - Parse the JSON and then pp the resulting hash
-
Browser - Install JSON plugin for Chrome
-
Sublime - Install ‘Pretty JSON’ from Package Control (source)
-
Curl - Use cough Python cough:
# in Ruby
JSON.parse(your_json)
# command line
curl http://api.twitter.com/1/statuses/public_timeline.json | python -mjson.tool
Happy parsing!