Read the structure, not the brackets
Raw JSON is fine for ten lines. An API response of a few thousand lines is another matter: the closing brackets of an object can be screens away from where it opens. A viewer replaces the text with a tree. Each object shows how many keys it has, each array how many items, and you open only the branch you care about.
This viewer opens the first two levels and leaves the rest collapsed. Arrays are shown 200 items at a time, so a file with a hundred thousand records opens without freezing the tab.
How to use it
- Paste your JSON in the input box, or load the sample.
- Click a node to open or close it. "Expand all" and "Collapse all" act on the whole tree.
- If the JSON is invalid, the error message gives the line, the column and a suggested fix.