Skip to main content

JSON Tree Viewer

JSON / Data

The usual debugging screen is a few hundred lines of JSON indented four levels deep, where you can no longer tell which layer a field belongs to. Formatters only fix indentation; a tree fixes structure — fold the arrays you do not care about, see how big each node is, and copy exactly the subtree you need instead of counting brackets.

Loading tool…

How to use

4 steps
  1. 01

    Paste JSON; a valid document renders immediately, invalid input shows the parser error.

  2. 02

    Click the arrow to expand or collapse; the first two levels open by default to avoid thousands of rows.

  3. 03

    Type a key or value in the filter box to keep only matching branches.

  4. 04

    Hover a node and click the copy icon: strings copy raw, objects and arrays copy formatted JSON.

Technical Notes & Guide

1

Rendering is recursive, so huge files still cost

This is a recursive component with fold state, not a virtualised list, so a multi-megabyte document will stutter on first expand. For very large payloads, slice the branch you care about with `jq` first — that beats any front-end optimisation.

FAQ

2 questions
Q1Does it modify my JSON?

No. It only parses and displays; copying a node returns the original value, not a re-serialised variant.

Q2Does it accept JSON5 or comments?

No, strict JSON only. Convert JSON5 or commented configs with a formatter first.

JSON / Data