/JSONViewer-for-Chrome

Validates and makes JSON documents easy to read.

Primary LanguageJavaScriptOtherNOASSERTION

JSONViewer-for-Chrome

JSONViewer-for-Chrome is a Chrome extension for printing JSON nicely when you visit it 'directly' in a browser tab. This allows you to a view JSON string in a tree format. Also, you can open/close sections for better visibility.

This a working version of JSONView-for-Chrome. It just includes a prefix to avoid a JSON vulnerability.

Disclosure

Features

  • Fast, even on long pages
  • Works on any valid JSON page – URL doesn't matter
  • Syntax highlighting
  • Collapsible trees, with indent guides
  • Buttons for switching between raw and parsed JSON
  • Parsed JSON is exported as a global variable, json, so you can inspect it in the console

Installation

Option 1 – just install it from the Chrome Web Store.

Option 2 – install it from source:

  • clone/download this repo,
  • open Chrome and go to chrome://chrome/extensions/,
  • enable "Developer mode",
  • click "Load unpacked extension",
  • select the extension folder in this repo.

Some URLs to try it on: