Can anyone recommend a good JSON viewer (or even editor) for Linux?
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
JSON Pro Viewer is a nice cross-platform viewer/editor for working with JSON Documents but it costs money. http://www.jsonpro.com/
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.
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