REST Tip: Use JSONView for In-Browser JSON Syntax Highlighting

October 01, 2009

One of the problems with working with JSON is getting a nice browser view with syntax highlighting and collapsible elements, as is possible with XML.

Over at the Metamolecular Products Blog is an example of how Chemcaster enables you to directly view JSON representations of resources in your browser with syntax highlighting.

For example, here's a representation of one of my Registries in bare JSON:

The trick: install the excellent Firefox plugin JSONView and you'll have syntax highlighting, indentation, and collapsible tree representations. It's very useful for working with REST APIs that expose raw JSON.