About JSON Graph Viewer & JSONPath Explorer
Deeply nested API payloads and configuration files in JSON, YAML, or XML are hard to inspect as raw text. JSON Graph Viewer transforms structured data into an interactive left-to-right SVG node graph and a searchable collapsible tree, highlights live JSONPath filter matches, and exports crisp vector SVG or 2x PNG diagrams locally in your browser.
Key Capabilities
| Feature | Details |
|---|---|
| JSON, YAML & XML input | Parses JSON, YAML (js-yaml), and XML with prototype-safe sanitization, 5 MB size cap, and 64-level depth protection |
| Interactive SVG node graph | Drag to pan, zoom in/out/fit, click node headers to collapse subtrees, and inspect color-coded primitives |
| One-click JSONPath copy | Click any row in the graph or tree to copy its canonical JSONPath (such as $.store.products[0].price) |
| Safe JSONPath evaluator | Pure recursive-descent engine supporting $, .. recursive descent, * wildcards, [start:end:step] slices, unions, and [?(@.price < 30 && @.inStock == true)] filters |
| SVG, 2x PNG & JSON export | Download Light or Dark SVG diagrams, 2x high-DPI PNG images, formatted JSON, or JSONPath match subsets |
| Local auto-save & handoffs | Auto-saves workspace drafts locally per studio and hands off JSON directly to related developer tools |
Useful JSONPath Query Patterns
$.store.products[*].title: Extract every product title across an array$..price: Recursively find everypricefield at any nesting depth$.store.products[?(@.price < 30 && @.inStock == true)]: Filter objects using numeric and boolean predicates$.store.products[0:2]: Slice the first two items from an array
Continue working on parsed payloads in one click using JSON Diff, JSON to TypeScript, JSON to Table, or Local SQL Workbench.
FAQ
How does it handle very large payloads? To keep pan and zoom responsive, the visual graph caps rendered nodes at 1,200 with a clear banner, while the JSONPath evaluator still searches the full parsed document so you can extract the exact slice you need.
Are production API payloads or YAML configs sent to a server? No. Parsing, JSONPath evaluation, graph layout, and SVG/PNG rendering execute strictly inside your browser with zero external uploads.