An API response that arrives as a single 40,000-character line is technically valid JSON and practically unreadable. This viewer solves the reading problem without touching the editing problem: paste JSON, and it renders as a collapsible, color-coded tree where every object, array, string, number, boolean, and null is visually distinct. You expand the branches you care about, fold everything else, and find the field you need in seconds instead of counting braces by eye.
The tool is deliberately read-only. Nothing you paste is modified, reformatted, or re-serialized, so what you see in the tree is exactly what the document contains, including duplicate keys, unusual characters, and awkward empty values. That makes it a safe inspection window for production payloads: paste a real customer record, a webhook body, or a GraphQL-style nested response, explore it, and close the tab knowing nothing was altered.
Like the rest of this site, everything happens locally in your browser. The JSON never leaves your device, there is no signup, and the page works fine on a phone when you need to check a payload away from your desk.
What the Tree View Shows
Each node in the tree corresponds to one value in your document. Objects render with their keys and a count of how many keys they hold; arrays render with their length, so a 14-element list collapses to one quiet line until you expand it. Leaf values are typed by color: strings in one color, numbers in another, booleans and null in their own styles, so you can scan a subtree and immediately tell whether status is the string "200" or the number 200 — a distinction that has burned every developer at least once.
A concrete example. Paste this order object and the top level shows three keys:
order_id— string,"A-88231"customer— object with 4 keys: name, email, tier, and a nestedaddressobject that itself containscity,zip, and ageoobject with latitude and longitude numbersitems— array with 3 elements, each an object holdingsku,qty, and a nestedpriceobject
Collapsed, that entire structure takes three lines. Expanded, it is fifteen. The viewer lets you work at whichever depth answers your current question, and the array counts tell you instantly that the order has three line items before you open any of them.
How to Use It (Step by Step)
- Paste your JSON into the input area. Valid documents render as a tree immediately; there is no button to click.
- If the input is not valid JSON, the tool says so and reports where parsing stopped, so you can fix the text and try again. A viewer cannot display what a parser cannot read.
- Click any object or array node to collapse or expand it. Collapsed nodes keep their summary line, so a folded array still shows
[3]and a folded object still shows its key count. - Scan value colors to answer type questions on sight: is this field null, an empty string, or the number zero? Those three look identical in plain text and completely different in the tree.
- Drill into deep nesting one level at a time. For a payload with six levels of objects, expanding level by level keeps you oriented; expanding everything at once recreates the wall of text you were escaping.
Why Deep Nesting Is the Killer Use Case
Flat JSON barely needs a viewer. The pain starts at depth, and modern APIs are deep. A single order object can carry customer.address.geo.lat, items[2].price.discount.campaign.id, or payment.method.details.last4 — four and five levels of nesting per record. In raw text, locating one of those fields means visually matching dozens of opening and closing braces, and one miscount sends you to the wrong level entirely, where a similarly named sibling field waits to mislead you.
In the tree, depth becomes navigation instead of counting. The path items then [2] then price then discount is four clicks, and each click confirms the structure you expected: the array has at least three elements, the third item has a price key, and that price object carries a discount. When the structure differs from what you expected — the discount is absent, or price is null on out-of-stock items — the tree shows that divergence immediately, which is exactly the moment you usually discover a bug in the producing code.
Configuration formats reward the same treatment. A package.json with 60 development dependencies hides inside devDependencies; a GitHub Actions workflow nests jobs, steps, and with blocks four levels down. Folding everything except the one branch you are auditing turns a 400-line file into a 20-line view.
Reading Types and Edge Cases Correctly
Plain text hides distinctions that matter, and the tree makes them loud. The table below shows values that look alike in text but differ in the viewer:
| Text shows | Actual type | What it usually means |
|---|---|---|
"" | Empty string | Field present but unset — often a backend default |
null | Null | Explicitly no value, distinct from empty |
0 | Number | A real computed zero, not missing data |
"0" | String | A code or identifier that happens to be numeric |
[] | Array, 0 items | No results — a successful query that matched nothing |
That last row deserves emphasis: [] versus null versus a missing key is a three-way distinction that API consumers constantly get wrong, and the viewer shows all three differently. Duplicate keys are handled the way parsers handle them — the last occurrence wins — so if a document contains "retries": 3 followed later by "retries": 5 in the same object, the tree shows 5. That silence is a property of JSON parsing itself, not a quirk of this tool, and it is worth knowing when a value disagrees with what you remember writing.
Viewer vs Formatter: When to Use Which
The two tools overlap but optimize for different moments. When you need to produce output — pretty-printed JSON for a pull request, minified JSON for a request body — use a formatter, because the result has to be text again. When you need to understand or verify a document without changing it, the viewer wins: you see structure and types without scrolling, and you cannot accidentally copy a reformatted version that differs in whitespace from the original. A practical rhythm for debugging: paste the payload into the viewer to find the exact path of the field that misbehaves, then search for that path in your code. Teams that skip the inspection step tend to debug by guesswork, patching code around a field they never actually looked at.
Tips and Best Practices
- Work top-down: keep the root expanded, fold siblings you have already inspected, and expand one candidate branch at a time. Your working set stays visible.
- Trust the array counts. If a list should hold 50 records and shows
[49], you have found an off-by-one or a dropped row before writing a single line of test code. - Check types before writing assertions. A test comparing
response.priceto the string"19.99"fails silently in production when the API switches to a number. - For huge documents, hundreds of thousands of nodes, expect rendering to slow; the browser is drawing every node you expand. Paste in the subtree you care about instead.
- Nothing you paste is stored or uploaded, so it is safe to inspect payloads containing tokens or personal data — but close the tab when finished, as with any sensitive material.