Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>Prism JSONNew to Visual Studio Code? Get it now.
Prism JSON

Prism JSON

SAMARTHA H V

|
1 install
| (0) | Free
Visualize, query, diff & inspect JSON at scale in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Prism JSON — Visualize any JSON instantly

Prism JSON

The JSON visualization suite VS Code was missing.

VS Code Marketplace Downloads Rating License: MIT

Tree · Table · Graph · Diff · API Inspector · JSONPath Query Panel


Prism JSON overview — open any .json file and switch between Tree, Table, Graph, Diff, API, and Query views in real time


Why Prism JSON?

Prism JSON JSON Crack JSON Viewer Pro Built-in editor
Tree view with virtual scroll ✅ ❌ ✅ ❌
Table view with sort + filter ✅ ❌ ✅ ❌
Graph / hierarchy visualization ✅ ✅ ❌ ❌
Structural diff (two files) ✅ ❌ ❌ ❌
API Inspector (live fetch) ✅ ❌ ❌ ❌
JSONPath Query Panel ✅ ❌ ❌ ❌
Cross-view highlight sync ✅ ❌ ❌ ❌
Off-thread parsing (Web Worker) ✅ ❌ ❌ ❌
Handles 50 MB+ without freezing ✅ ❌ ❌ ❌
Stays inside VS Code ✅ ❌ (browser) ✅ ✅
Free & open source ✅ partial ❌ ✅

Features at a glance

Tree View — navigate any depth, instantly

Tree view: virtual scroll, expand/collapse, search, copy JSONPath

  • Virtual scroll renders only on-screen rows — 100 000-node trees stay at 60 fps
  • Expand / collapse individual nodes or everything at once
  • Search with auto-ancestor expansion so the match is never hidden
  • Click any value to copy its JSONPath ($.users[0].email) to clipboard
  • Indent guide lines, type badges (str / num / bool / null / arr / obj) on hover
  • Arrow-key keyboard navigation — no mouse required

Table View — your JSON as a spreadsheet

Table view: sort columns, filter rows, export CSV

  • Flattens any JSON array of objects into a sortable, filterable table
  • Sort any column ascending / descending
  • Filter rows with a free-text search across all visible columns
  • Paginate large datasets (25 / 50 / 100 rows per page)
  • Export to CSV with one click
  • Query-matched rows highlighted in teal — cross-view sync with the Query Panel

JSONPath Query Panel — DevTools console for JSON

Query Panel: live JSONPath, highlight in Tree and Table, save queries, history

  • Type any JSONPath expression ($.users[?(@.age > 30)]) and see results live (150 ms debounce)
  • Matched nodes are highlighted simultaneously in the Tree view and Table view — no tab switching
  • Tree auto-expands all ancestor paths so every match is visible
  • Save queries with a custom name and color — persists across sessions via workspace state
  • Query history (50 entries) — navigate with ↑ / ↓ in the input
  • Activity Bar sidebar shows all saved queries at a glance; click any to run it instantly
  • Handles 5 000+ matches with a performance cap and user warning

Graph View — see the shape of your data

Graph view: SVG hierarchy, pan and zoom, depth control

  • Hierarchical SVG tree with pan and zoom
  • Capped at 3 levels by default to keep rendering fast on deep structures
  • Color-coded by node type
  • Hover any node to see its full value in a tooltip

Diff View — structural change detection

Diff view: compare two JSON files side by side

  • Compare any two open JSON files — select from all open editors
  • Off-thread structural diff powered by the same Web Worker as the tree view
  • Summary: added / removed / modified / unchanged key counts
  • Change markers on every affected path so you see exactly what moved

API Inspector — fetch + visualize in one step

API Inspector: enter URL, headers, auth, see response in Tree view

  • Enter any URL, add custom headers, choose auth (Bearer, Basic, API Key, none)
  • Auto-refresh on a configurable interval (5 s / 30 s / 1 min / 5 min)
  • Response opens directly in the Tree view — JSONPath queries work on live API data too
  • Full request history for the session

Performance

JSON parsing, flattening, querying, and diffing all run in a dedicated Web Worker — the VS Code UI thread is never blocked.

Metric Value
Worker bundle 36 KB (11 KB gzip)
UI bundle 75 KB (20 KB gzip)
Extension host bundle 33 KB
First meaningful paint < 100 ms
10 MB file parse ~800 ms (off thread)
Virtual scroll FPS (100 k nodes) 60 fps
Query debounce 150 ms

Hard-cancel semantics: if a new file arrives while a large parse is in progress, the worker is terminated and replaced — no zombie parses.


Quick start

Open any .json or .jsonc file, then:

Windows / Linux macOS Action
Ctrl+Shift+J T Cmd+Shift+J T Open Tree view
Ctrl+Shift+J B Cmd+Shift+J B Open Table view
Ctrl+Shift+J G Cmd+Shift+J G Open Graph view
Ctrl+Shift+J D Cmd+Shift+J D Open Diff view
Ctrl+Shift+J A Cmd+Shift+J A Open API Inspector
Ctrl+Shift+J P Cmd+Shift+J P Open Query Panel
Ctrl+Shift+J Q Cmd+Shift+J Q Run JSONPath query (command palette)
Ctrl+Shift+J C Cmd+Shift+J C Copy JSONPath at cursor

All commands are also available via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) — search Prism JSON.

Right-click any .json file in the Explorer for a context menu with all view options.


Configuration

{
  // Auto-open when a JSON file is activated (default: false)
  "prismJson.autoOpen": false,

  // Which view to open — "tree" | "table" | "graph" | "query"
  "prismJson.defaultView": "tree",

  // Levels to auto-expand in Tree view on load (0 = collapsed, default: 2)
  "prismJson.autoExpandDepth": 2,

  // Rows per page in Table view — 25 | 50 | 100 | 250 (default: 100)
  "prismJson.tablePaginationSize": 100,

  // MB threshold above which a mid-parse worker is hard-cancelled on new input (default: 5)
  "prismJson.workerHardCancelThresholdMb": 5
}

Use cases

  • Backend developers — inspect REST API responses without leaving VS Code
  • Data engineers — explore large JSON datasets (config dumps, log files, Spark outputs)
  • Frontend developers — understand deeply nested API shapes and component props
  • QA / DevOps — diff config files between environments, catch unintended changes
  • Designers & PMs — readable table view for non-technical stakeholders reviewing data
  • Anyone — stop scrolling through minified JSON at 2 a.m.

Extension anatomy

prism-json/
├── src/                         # Extension host (TypeScript + esbuild)
│   ├── extension.ts             # Activation, command registration
│   ├── providers/
│   │   ├── JsonDocumentProvider.ts   # Webview lifecycle + message bus
│   │   └── QuerySidebarProvider.ts  # Activity Bar saved-query list
│   └── commands/                # One file per view mode
│
└── webview/                     # Svelte 4 + Vite UI
    └── src/
        ├── workers/
        │   ├── jsonWorker.ts    # Off-thread: parse, flatten, query, diff
        │   └── workerBridge.ts  # Promise API + cancel semantics
        ├── state/
        │   ├── documentStore.ts # Parsed data + error stores
        │   └── queryStore.ts    # Query results, history, saved queries
        └── components/
            ├── TreeView/        # Virtual scroll tree + TreeRow
            ├── TableView/       # Sort / filter / paginate table
            ├── GraphView/       # SVG hierarchy
            ├── DiffView/        # Structural diff
            ├── ApiInspector/    # Fetch + headers + auth
            └── QueryPanel/      # Editor + list + split layout

Contributing

Bug reports and feature requests welcome — open an issue. Pull requests welcome — see CONTRIBUTING.md.


License

MIT © 2025 — see LICENSE


Built with Svelte · Vite · jsonpath-plus · VS Code Extension API
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft