How to browse JSON as a tree
- Paste your JSON into Input, drop a
.jsonfile on the page, or press Open file. - The result opens in Tree view. Select the arrow next to an object or array to open or close it.
- Click a row to copy its path, or use Expand all, Collapse all and the search box to find what you need.
Switch to Text to see the same data as formatted JSON, with the indent you choose.
Why a tree helps
A long API response is hard to read as text. Nested objects hide behind many lines of braces, and it is easy to lose your place. A tree shows one level at a time, so you can open only the branch you care about. Each row shows the key, the value or a short preview, and a badge for its type.
Copying a JSONPath
Every row knows its path from the root. Click it and you get an expression like $.store.book[0].title. Paste that into code, a test, or the JSONPath query tool to pull the same value out of other documents. Keys with spaces or symbols use the bracket form, for example $['first name'].
Tips
- Not sure the JSON is valid? The status bar tells you, with the line and column of the first error. The JSON validator goes into more detail.
- Need a stable view? Turn on Sort keys in the Text view to order keys A to Z.
- Want to turn a sample into types? Try JSON to TypeScript.
- Press Ctrl+F (or Cmd+F on a Mac) while the tool is focused to search the tree.
Privacy
Responses often include tokens and personal data. The viewer runs in your browser, sends nothing to a server, and keeps no copy of your text.