JSON Tree Viewer
Explore JSON as a collapsible tree. Expand and collapse objects and arrays, search keys and values, and copy the JSONPath of any node.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the JSON Tree Viewer
- 1 Paste JSON or open a .json file.
- 2 Expand and collapse the branches, or search for a key or value.
- 3 Click a node to see and copy its path or value.
About the JSON Tree Viewer
The tree viewer shows the structure of a JSON document: every object and array is a branch you can open and close, with the number of keys or items next to it. Strings, numbers, booleans and null are shown in different colours.
Search for a key or value and the matching nodes are highlighted, with their branches opened. Click any node to see its path in JSONPath notation, such as $.books[2].tags[0], which you can use in code, in jq or in a JSONPath tester.
Copy the value of a node to get that part of the document as formatted JSON. Large documents with tens of thousands of nodes stay fast because only the visible lines are drawn.
Frequently asked questions
What is a JSONPath?
A notation for a location in a JSON document: $ is the root, .name a key and [0] the first item of an array, for example $.store.books[0].title.
Why does my JSON not load?
It contains a syntax error; the line is shown above the tree. Trailing commas and single quotes are the most common causes.
Can I edit the JSON here?
Edit the text in the input box and the tree updates. Use the JSON formatter to format it.
How large can the JSON be?
Documents of several megabytes work. Very large documents open with only the top level expanded.