The JSONovich add-on uses primarily the json.org parser to pretty print JSON code but also google-code-prettify to colorize it.
Much of the component is based upon code written for the XHTML Mobile Profile extension which does a similar stream conversion.
Normally, Firefox would either prompt to download or display as plain text any JSON sent with the correct application/json mime-type. JSONovich makes working with JSON and debugging output from web services easier by formatting JSON nicely inside the browser.
JSONovich is cross-platform and it works on Mac OS X, Windows and Linux.
Here are some key features of "JSONovich":
· Syntax highlighting of JSON elements. [since 0.1]
· Indentation according to JSON object/array nesting level. [since 0.1]
· Line numbering based on JSON nodes and brackets, long strings always count as a single line. [since 0.8]
· Collapsible objects and arrays (whole line is clickable, not just a tiny +/- symbol). [since 1.5]
· Subtle zebra-stripes for easier reading. [since 1.7]
· Preserves formatting accurately when copying to clipboard, excluding line numbers. [since 0.9]
· Adds application/json to the default HTTP Accept header to make working with CouchDB easier. [since 1.1, optional since 1.8.2]
· Can override the default HTTP Accept header for individual hosts to either remove application/json or add it with a specific quality factor. [since 1.9]
· Options can be changed via the Add-ons Manager in Firefox 7+, Mobile 7+ and SeaMonkey 2.4+. [since 1.9]
· Options can be changed via about:config (extensions.jsonovich branch) in all browsers. [since 1.8]
· Restartless (even in older browsers, partially). [since 1.8]
· Full support for documents served with unusual character sets as well as the official UTF8. [fixed in 1.9]
Currently supports the following MIME types by default:
· application/json [since 0.1] (also legacy unofficial types application/x-json [since 1.8.2], text/json [since 1.8.2] and text/x-json [since 0.1])
· application/jsonrequest [since 1.6]
· application/sparql-results+json [since 0.9.1]
· application/schema+json [since 1.8.2]
· application/jsonml+json [since 1.8.2]
· application/rdf+json [since 1.4]
· application/javascript and variations [since 1.9.2]
· The above list is customizable by user preferences. [since 1.8.2]
Supports loading JSON from files on disk with the following extensions by default:
· .json [since 1.8]
· .srj [since 1.8.2]
· The above list is customizable by user preferences. [since 1.8.2]
Requirements:
· Firefox 3.5 - 9.*
· SeaMonkey 2.0 - 2.6.*
What's New in This Release: [ read full changelog ]
· Hotfix for improperly escaped JSON strings.