Pretty JSON is a browser extension that automatically detects standalone JSON responses and replaces the raw text with a fast, developer‑friendly viewer.
Install dependencies
bun installRun in development
bun run devBuild the extension
bun run buildThis compiles the viewer (via Vite) into the dist/ folder and copies manifest.json. Load dist/ as an unpacked extension in your Chromium‑based browser.
- Virtualized tree: Renders only visible rows, so large payloads stay fast. Collapsed nodes show an inline preview, and indent guides make nesting easy to follow.
- Keyboard navigation:
↑ ↓ PgUp PgDn Home Endto move,← →to fold,Enterto toggle,Alt+ click orAlt+ arrow for whole subtrees,⌘/Ctrl Cto copy the selected value. - Search:
⌘/Ctrl Fsearches keys and values, auto-expands to matches, and steps through them withEnter/Shift Enter. - JSONPath / jq queries:
⌘/Ctrl Kruns queries like$..name,$.items[?(@.price > 10)]or.items[].id. Results stay linked to their source location. - Table view: Arrays of objects open as a sortable, filterable table with CSV copy and download.
- Inspector: Shows the selected node's path as JSONPath, JS, Python and jq, its size and depth, and decoded values (timestamps, ISO dates, JWTs, base64, embedded JSON, URL query params).
- Export: Copy formatted or minified JSON, download it, or generate TypeScript, JSON Schema, Zod, Pydantic, Yup and Joi types.
- Pinned paths & breadcrumbs: Pin paths you return to and jump back from the status bar.
- Light and dark mode: Follows the system setting by default;
Dtoggles it.
Press ? in the viewer for all shortcuts and query examples.