To inspect JSON in command-line, I prefer jsontool[1], it's more intuitive.
something-generating-JSON-on-stdout | json [OPTIONS] [LOOKUPS]
[1] http://trentm.com/json/