JSON Viewer is a Chrome extension that pretty-prints and highlights JSON and JSONP in the browser. It offers themes, collapsible nodes, and omnibox or console helpers.
Overview
JSON Viewer formats and colorizes JSON and JSONP responses inside Google Chrome. It targets developers who inspect API payloads in the browser and want readable, themed output instead of raw text.
Highlighted features include syntax coloring with many built-in themes, collapsible tree nodes, optional clickable URLs, detection of JSON by content rather than URL alone, line numbers, configurable tab size, limits on document size, sorting keys, toggling raw versus highlighted views, and a scratch pad accessed via the omnibox keyword workflow.
Users can enable highlighting for local files and incognito windows through extension settings, and may need to re-enable file access after updates if Chrome resets permissions. An omnibox hotword lets you paste JSON after typing the extension keyword and tabbing, and the console accepts a json helper for quick inspection.
Installation is primarily through the Chrome Web Store; developers may also build the unpacked extension locally and load the build output directory via Chrome developer mode. Other JSON formatter extensions may conflict and should be disabled.
Key features
- JSON and JSONP syntax highlighting
- Twenty-seven built-in color themes
- Collapsible tree nodes
- Optional clickable URLs
- Omnibox json-viewer shortcut
- Console json inspection helper
- Raw versus highlighted toggle
- Scratch pad formatting area
Use cases
- Reading API responses in Chrome
- Inspecting local JSON files
- Debugging JSONP callbacks in pages
- Themed JSON reading for long payloads
- Quick format via omnibox paste