JSON Viewer

Text + collapsible tree viewer with expand/collapse and node paths.

Your JSON is parsed and displayed locally in your browser, and nothing is uploaded to a server.

Need TypeScript types from your JSON? Try the JSON to TypeScript tool.

About JSON Viewer

This json viewer gives you a two-pane workspace for reading and tidying JSON: edit, format, or minify your data in the Text tab, then switch to the Viewer tab to walk through it as a collapsible tree. It is built for developers, QA engineers, and anyone debugging an API response who needs to view json online without hunting through a wall of text. Expand or collapse nodes, drill into nested objects and arrays, and click any value to copy its exact path. As a json tree viewer it also doubles as a quick json formatter, helping you beautify minified payloads and spot the structure at a glance. Everything runs entirely in your browser, so your data never leaves your device and nothing is uploaded to a server.

Features

How to use the JSON Viewer

  1. Paste or type your JSON into the Text tab.
  2. Click Format to beautify it, or Minify to compact it, and confirm it is valid.
  3. Switch to the Viewer tab to see the collapsible tree.
  4. Use Expand all or Collapse all, or click individual nodes to drill in.
  5. Click a value and copy its path from the bar at the bottom.

Example

Input

{"author":{"name":"Ada","links":["site","blog"]}}

Output

{
  "author": {
    "name": "Ada",
    "links": [
      "site",
      "blog"
    ]
  }
}

Formatted in the Text tab; clicking the first link in the Viewer shows the path author.links[0].

Common errors & troubleshooting

Frequently asked questions

What is the JSON Viewer used for?
The JSON Viewer lets you format, minify, and explore JSON as a collapsible tree, so you can read API responses and config files without scanning a wall of raw text.
How do I get the path to a value in the JSON Viewer?
Click any node in the Viewer tab and its path, for example author.links, appears in the bar at the bottom, ready to copy.
Can I expand or collapse the whole tree at once?
Yes. Use the Expand all and Collapse all buttons in the toolbar to reshape the entire document in one click.
Does the JSON Viewer also format and minify my JSON?
Yes. The Text tab beautifies or compacts raw JSON with the Format and Minify buttons, and the Viewer tab then shows it as a navigable tree.
Is my JSON sent anywhere when I use the JSON Viewer?
No. The JSON Viewer processes everything locally in your browser, so your data never leaves your device and nothing is uploaded.
How does the JSON Viewer handle invalid JSON?
The Viewer tab needs valid JSON to build the tree; fix any errors flagged in the Text tab, including the line and column, and the tree will render.

Related tools

All ArrayKit tools