views:

1361

answers:

8

Can anyone recommend a good JSON viewer (or even editor) for Linux?

A: 

There's this AIR application. If the JSON resource is online, this could be helpful.

geowa4
+1  A: 

JSONLint rocks.

apphacker
Nice! (But I reserve the right to transfer the green checkmark if someone else finds a good native app or Emacs mode)
raldi
A: 

If you are on Ubuntu/Debian you can install edit-json. It is also available in json gem as edit_json.rb but it depends on a working installation of Ruby GTK2. Check out the screenshots on json.rubyforge.org/screenshots.html

Cydork
A: 

JSON Pro Viewer is a nice cross-platform viewer/editor for working with JSON Documents but it costs money. http://www.jsonpro.com/

A: 

I use the JSONView Firefox add-on. You have to ensure that JSON is served with, or that local .json files are mapped to, the application/json MIME type. But they should be, so that's not a drawback.

Nat
+1  A: 

http://jsonviewer.stack.hu It is free tool. :)

Gabor
A: 

The Firefox Extension - Firebug allows you to capture the JSON object and view it as interpreted by the browser. Firebug does a slew of other options too, but for this instance it will allow you to actively debug the script that you are working on.

Geek Num 88
+1  A: 

Well, if you just want to view the JSON, I'd recommend using a program called curl. It's lightweight, and you can pipe it to json_xs to format it's output (especially if you're a perl guy/gal).

Pre-conditions:

sudo apt-get install libjson-perl
sudo apt-get install curl

And to view it:

curl -s http://url-for-my-json.com/fobbar.json | json_xs
The Daemons Advocate