开发者

How do I view this in an easy format to read? (JSON)

开发者 https://www.devze.com 2022-12-25 09:39 出处:网络
https://search.twitter.com/sea开发者_如何转开发rch.json?q=doug How do I read this like VIEW SOURCE, so that I know what I\'m looking at?

https://search.twitter.com/sea开发者_如何转开发rch.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


Parse it, then use pprint:

data = json.load(...)
pprint.pprint(data)


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消