Paste JSON to view
Paste JSON to view
Paste JSON and this viewer draws it as a tree you can fold and unfold. The root and its direct children open by default; anything deeper is collapsed and shows how many items it holds, like items [42] or metadata {6}. Strings, numbers, booleans and null are colour-coded. A Raw tab shows the same data as 2-space formatted JSON.
By Ankit Aglawe · Updated · Runs entirely in your browser
The tree opens with root, then data, has_more, next_cursor and total visible. data is expanded, so you see its two entries as 0 {4} and 1 {4}, folded. Click one to see id, email, plan {2} and tags [1]. Array items are labelled by index.
{
"data": [
{ "id": "cus_01", "email": "[email protected]", "plan": { "name": "pro", "seats": 5 }, "tags": ["beta"] },
{ "id": "cus_02", "email": "[email protected]", "plan": { "name": "free", "seats": 1 }, "tags": [] }
],
"has_more": true,
"next_cursor": "cus_02",
"total": 1384
}Manifests are deep, which is where a tree helps. metadata and spec open at the top level, while labels, selector and template start folded with their child counts. Drill into template, spec, containers to reach the container without scrolling past everything else.
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": { "name": "web", "namespace": "prod", "labels": { "app": "web", "tier": "frontend" } },
"spec": {
"replicas": 3,
"selector": { "matchLabels": { "app": "web" } },
"template": {
"spec": {
"containers": [
{ "name": "nginx", "image": "nginx:1.27", "ports": [{ "containerPort": 80 }] }
]
}
}
}
}The tree shows numbers after JSON.parse, so integers above 2^53 appear rounded: 9007199254740993 shows as 9007199254740992. If an id looks off by one, check the raw input, not the tree.
Only the last value of a repeated key is shown. The tree reflects what a JavaScript program would see, not every character of the source.
Keys keep their source order, except integer-like keys such as "10" or "404", which JavaScript lists first in numeric order.
String values are shown decoded and wrapped in quotes, so "caf\u00e9" reads "café" and an escaped \" shows as a bare ". Use the Raw tab when you need the exact JSON spelling.
An empty array shows as [ ] and an empty object as { } with nothing between, at whatever level it sits. Collapsed, they read [0] and {0}.
A document that is just 0, false, null or "" is valid JSON, and the status bar says so, but the tree pane keeps showing "Paste JSON to view" for these four values. Use the Raw tab or the formatter for them.
Enter a JSON document in the editor, or use the URL-fetch button to load JSON from a public API endpoint.
Click nodes to expand or collapse objects and arrays. The tree shows key names, value types, and array lengths at a glance.
Click any value in the tree to see its full JSON path. Use Ctrl+F to search for keys or values within the tree.
Open the file in any editor, copy the contents and paste them into the left pane. The tree builds as you paste. Click the arrows to expand or collapse a node.
Only the root and its direct children open automatically. Deeper objects and arrays start folded and show their size, so a large document does not render thousands of rows at once.
Yes. The Raw tab above the tree shows the same input formatted with 2-space indentation and syntax colours.
The viewer shows the parser error instead of a tree, and the status bar repeats it. The JSON Validator page explains what each message means.
Use the JSONPath tool with a query like $.data[*].email. The viewer is for browsing; JSONPath is for extracting.
No. It is parsed and rendered in your browser. Nothing leaves the page.
Need several formats at once? Convert All shows every output from one paste. Or browse all JSON converters.