Developer Tools

JSON Viewer

Live

Explore JSON in a searchable, collapsible read-only tree with paths and value types.

About JSON Viewer

Turn dense JSON into a navigable document tree without changing the source. Expand or collapse nested objects and arrays, search across keys and primitive values, and select any leaf to reveal its JSON-style path, value, and type. The source pane remains visible for reference while the normalized execution result is available with two-space or four-space indentation. Parsing and tree construction happen locally in the browser.

Set up JSON Viewer

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Paste valid JSON text. Use double-quoted property names and string values.

Enter the number of spaces to use for each JSON nesting level.

JSON Viewer: normalized json

Choose the values that apply, then view json.

Calculation method

Parse JSON, recursively classify each node, build a collapsible tree, and derive paths from object keys and array indexes.

How it works

The viewer parses the source and recursively maps objects, arrays, and primitive values into a read-only tree. Object properties use dot-separated paths and array positions use bracket notation, beginning at $. Search keeps branches that match a key, type, or primitive value. The normalized JSON output uses the selected indentation.

Examples

JSON Viewer: Format sample

Example input
{
    "json": "{\"a\":1}",
    "indent": 2
}
Expected result
{
    "json": "{\n  \"a\": 1\n}",
    "valid": true,
    "node_type": "object"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How are JSON paths displayed?

Paths begin with $ for the root. Object properties append .property and array items append [index], producing paths such as $.users[0].email.

What can I search for in the tree?

Search matches property names, primitive values, and node types. Parent branches remain visible when they contain a matching descendant.

Does viewing or expanding nodes modify the JSON?

No. The tree is read-only. Expanding, collapsing, searching, and selecting values only change the display; the source document remains unchanged.

Is the JSON sent to the server?

No. The standard page interface parses and renders the tree locally, and UtilityPages does not store a history of viewed documents.