Benjamin Atkin

You've reached the non-topical blog of Benjamin Atkin.

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!

richardlog:

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….

  1. seapomeranian reblogged this from richardlog
  2. batkin reblogged this from richardlog and added:
    in conjunction with pbcopy....pbcopy. Formatting this: {"this": {"is": "a", "nested":...
  3. richardlog posted this