richardlog: Pretty-printing JSON and XML on Mac OSX
I’d also use this in conjunction with pbcopy. pbpaste | python -m json.tool | pbcopy. Formatting this:
{"this": {"is": "a", "nested": "json"}, "object": [true]}
As this:
{
"object": [
true
],
"this": {
"is": "a",
"nested": "json"
}
}
Nice!
Like my colleagues at Avisi I’m an avid OSX user. One of the reasons I like OSX is it gives you have the power of Unix right under your fingertips while still providing a nice user interface.
Now suppose you’re working on RESTful services and you need to verify or debug some JSON output….
-
frijole likes this
-
nicedexter reblogged this from richardlog and added:
pbpaste | python -m json.tool > formatted.json
-
andresdouglas reblogged this from richardlog
-
andresdouglas likes this
-
yeseniauio09 likes this
-
murphytii0 likes this
-
brendaca83 likes this
-
seapomeranian reblogged this from richardlog
-
passingloop likes this
-
richardlog posted this
Short URL for this post: http://tmblr.co/ZrpDayBtrOMq