JSON Visualizer: Graph, Table & jq
Format, visualize (Graph & Table views), and query JSON and JSONL / NDJSON files with jq directly inside VS Code — inspired by json4u.com.
Quick Start (Where to Click)
- Open any
.json, .jsonl, or .ndjson file in VS Code.
- Side-by-Side Live Preview (Recommended):
- Click the Tree / Graph icon in the top-right editor toolbar, or
- Open Command Palette (
Cmd+Shift+P / Ctrl+Shift+P) → run JSON Visualizer: Open Preview (Graph & Table).
- Full-Tab Custom Editor:
- Right-click any
.json / .jsonl / .ndjson file → Open With... → JSON Visualizer: Graph, Table & jq.
- Interactive Tutorial:
- Open Command Palette →
Welcome: Open Walkthrough... → Get Started with JSON Visualizer.
Features
1. Graph View (Interactive Tree + Click-to-Focus Spotlight)

- Interactive left-to-right node-link cards with syntax-colored primitives, collapsible subtrees, zoom controls, and toggleable MiniMap.
- Spotlight Focus: Click any node or reference row (e.g.
$.data[1]) to smoothly center on it and dim unrelated nodes; press Esc or click empty canvas to restore.
- Bi-directional Navigation: Clicking any node or field jumps directly to and highlights the exact line in your VS Code editor.
- Large File Protection: Paginated root items + viewport virtualization keep large files smooth.
2. Table View (Smart Focus + Column Reorder & Hide)

- Smart Focus: Automatically detects and focuses nested data arrays in API responses (e.g.
$.data, $[0].data, $.hits.hits) while keeping outer pagination fields (page, per_page, total) visible in the Context strip. Click $ (Root) anytime to return to the wrapper.
- Column Resizing, Reordering & Hiding:
- Drag the right edge of any column header to resize (double-click edge to reset width).
- Drag any column header to reorder columns.
- Right-click any column header to Hide, Move to Front, Show All Columns, or Reset.
- Click Columns in the table bar to search, toggle visibility, pin, or drag-reorder columns in bulk.
- Readable Inline Arrays & Nested Drill-Down: Primitive arrays (
tags, os_types) render directly as clickable chips with search/sort support; object arrays display concise summaries (e.g. [1] file.hash.sha256); drill-down views use clean pure-English type badges (string array, object array, json string, object map, etc.). Double-click any cell to copy its value.
- Export to CSV: Click CSV in the table bar to Save as
.csv (Excel-friendly UTF-8 BOM), Open CSV in Tab, or Copy CSV — preserving your visible columns, custom column order, filter, and sort.
3. Built-in jq Querying (CLI + Bundled WASM Fallback)

- Press
Cmd+J (macOS) or Ctrl+J (Windows / Linux) or click jq in the toolbar to open the query bar.
- Zero-Config Hybrid Engine: Automatically discovers your native
jq CLI (including macOS Homebrew /opt/homebrew/bin/jq, /usr/local/bin/jq, Linux, and Windows paths) and falls back seamlessly to a bundled WebAssembly jq (jq-web) when jq is not installed.
- Supports Slurp (
-s) for JSONL aggregations, viewing results directly in Graph/Table views, copying output, or opening results in a new editor tab.
- Format (pretty-print JSON or normalize JSONL), Minify, Sort Keys, and JSON Array ↔ JSONL conversion directly on the active document.
- Resilient JSONL / NDJSON parser: bad lines are reported with line numbers while valid lines still render normally.
Keyboard Shortcuts (Inside Preview)
| Shortcut |
Action |
Cmd+J / Ctrl+J |
Toggle & focus jq query bar |
/ |
Focus search box |
Enter / Shift+Enter |
Next / Previous search match |
Esc |
Clear Graph focus / close popovers / clear search |
| Double-click cell (Table) |
Copy cell value to clipboard |
Settings
| Setting |
Default |
Description |
jsonVisualizer.jqEngine |
"auto" |
"auto" (native CLI first, fallback to WASM), "cli", or "wasm" |
jsonVisualizer.jqPath |
"jq" |
Path to native jq executable |
jsonVisualizer.indentSize |
2 |
Spaces used when formatting JSON |
jsonVisualizer.defaultView |
"graph" |
Default visualization mode ("graph" or "table") |
| |