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
  • 238,746
  • 336
  • 750
  • 1,061
  • 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
  • 740,318
  • 145
  • 1,296
  • 1,325
1

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

j0k
  • 22,303
  • 28
  • 77
  • 86
abraham
  • 44,161
  • 9
  • 92
  • 140
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
  • 6,023
  • 1
  • 25
  • 22