- Home
- Tools
- Developer Tools
- JSON Formatter
- JSON Viewer
JSON Viewer
Paste JSON or open a file and browse it as a tree: open and close objects and lists, and see how many items each one holds.
Nothing to paste? , or .
Result
Reading JSON as a tree
As text, JSON comes with all its punctuation. The tree shows the structure only: every object and every list is a branch that opens and closes, and a closed branch already says how much is in it.
| In the tree | What it is |
|---|---|
{ } 3 keys | An object with three keys. Click the row to open or close it. |
[ ] 12 items | A list of twelve items, numbered from 0. |
name: "Ada" | A text value, in green and in quotes. A line break inside the text shows as \n. |
price: 42.50 | A number, in blue, written exactly as it is in the source. |
paid: true | One of true, false and null, in violet. |
The document itself and the level below it are open when the tree appears. From there you open what you need.
Large documents
Only open branches are drawn, which keeps a document of several megabytes usable. A branch with many children shows the first 100, and Show more adds 500 at a time. Expand all is offered while the document holds no more than 2,000 values in total; above that it would draw more rows than anyone reads. Collapse all is always there.
Open a file takes files of up to 10 MB. The file is read by your browser and not uploaded.
Tree or text?
The tree is for finding your way in data you did not write: what an API returns, how deep a field sits, how long a list is. Switch to Text to copy the JSON, to search it with your browser's find function, or to compare it with another version.
Sort keys works in both views, and makes one key easy to find in an object that has dozens. If the JSON is not valid there is nothing to draw, and you get the line and column of the mistake instead.
The JSON formatter page has the rules of JSON in full, what Repair fixes, and why large numbers need care.