Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know a good free Json viewer for mac? I just want to be able to see the data organised a bit better then one long piece of text

share|improve this question

closed as off-topic by slhck May 8 '14 at 17:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – slhck
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 4 down vote accepted

You could use this add-on for Firefox : JSONView

Normally when encountering a JSON document (content type "application/json"), Firefox simply prompts you to download the file. With the JSONView extension, JSON documents are shown in the browser similar to how XML documents are shown. The document is formatted, highlighted, and arrays and objects can be collapsed. Even if the JSON document contains errors, JSONView will still show the raw text.

share|improve this answer

jsonpretty for pretty-printing JSON at the command line.

sudo gem install jsonpretty
share|improve this answer

If all you need is to be able to paste in text and see it prettily formatted with some basic "roll-up" functionality, try

Update: While trying out Olivier's new beta I responded to a feedback prompt, noting the lack of "roll-up" behavior for unnamed objects and arrays. He emailed me the next morning to say that he'd gone ahead and implemented that right away. Awesome!

share|improve this answer
Also just uncovered this one. Less easy-on-the-eyes than Olivier Cuenot's tool, but easier to see the forrest for the trees as, unlike, this one will roll up arrays as well as key-value pairs. – clozach Apr 15 '11 at 19:57

You can use Jason as an offline app:

share|improve this answer

If you want a JSON QuickLook viewer integrated into the Finder, you can try quick look JSON.

share|improve this answer

On Browser, I always use this JSON Viewer. If I need to see natively on mac, I use VisualJSON, which also support tree view.

share|improve this answer

My favourite way to do this (on the commandline) is to define a "pretty printing" alias,

alias pp="python -mjson.tool | pygmentize -l js"

Then you can just

cat file.json | pp

If the file is big, pipe this through less -R, -R allows colouring sequences to pass through unescaped (raw).

The only dependency for this is python (json.tool is in the python standard library) and pygments. If you don't want colour coding you can leave the | pygmentize ... bit out.

share|improve this answer
a hidden gem :-) thanks! – Florenz Kley Oct 15 '14 at 13:08

If you use TextMate, there is a / are JSON.tmbundles available, such as this one.

share|improve this answer

If you don't mind check hitting the web, check out JSONLint.

It validates and makes your JSON "pretty". You may want to consider other solutions for larger documents as this is not really scalable.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .