0

https://search.twitter.com/search.json?q=doug

How do I read this like VIEW SOURCE, so that I know what I'm looking at? Is there a website that can prettify it for me?

BTW, I use python

TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
  • See http://stackoverflow.com/questions/883977/display-json-as-html, http://stackoverflow.com/questions/352098/how-to-pretty-print-json-script. – Max Shawabkeh Apr 04 '10 at 23:33

4 Answers4

2

Parse it, then use pprint:

data = json.load(...)
pprint.pprint(data)
Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
1

You can also use something like http://hurl.it.

j0k
  • 22,600
  • 28
  • 79
  • 90
abraham
  • 46,583
  • 10
  • 100
  • 152
1

Personally, I use JSONView for Firefox, which does a good job formatting and colour-highlighting JSON.

freeatnet
  • 104
  • 7
-1

Insert a carriage return after every comma with your favorite search and replace utility. If you know Python then you shouldn't have any trouble getting it even prettier than that.

Azeem.Butt
  • 5,855
  • 1
  • 26
  • 22