JSON Viewer (Tree)

Browse JSON as a collapsible tree with search and copy-path.

The JSON Viewer shows a JSON document as a collapsible tree you can explore, search and copy paths from. Click any key to copy its JSONPath, search across keys and values, and expand or collapse the whole tree in one click. It helps you make sense of large API responses and nested config files.

What is a JSON tree viewer?

JSON is a text format made of objects (key and value pairs), arrays (ordered lists) and primitive values such as strings, numbers, booleans and null. Real documents are often deeply nested and hard to read as a wall of text. A tree viewer parses the text and shows each object and array as a node that can be opened or closed, so you can focus on one branch at a time. A JSONPath expression describes the location of a value in the tree, for example $.users[0].name means the name property of the first element of the users array. Many tools such as query libraries, test assertions and log processors accept paths like this, so copying a path from the viewer saves manual counting of brackets.

How to use JSON Viewer (Tree)

  1. Paste or load JSON Paste the document into the JSON box, or use the file button to load a .json file.
  2. Browse the tree The tree appears on the right. Open and close nodes, or use Expand all and Collapse all.
  3. Search Type in Search keys and values. A results panel lists each match with its path, whether it matched a key or a value, and a preview.
  4. Copy a path Click a key in the tree or a path in the results. A message confirms Copied path followed by the path.

Frequently asked questions

What format are the copied paths?

A JSONPath-style path starting with $, such as $.users[0].name. Names that are not simple identifiers use bracket notation with single quotes.

Does the viewer change my JSON?

No. It parses the text and shows it; it does not reformat or rewrite your input.

Does search look at keys as well as values?

Yes. A match on a key name is reported as key, and a match inside a string, number, boolean or null value is reported as value.

Why does the tree appear empty?

The tree shows a placeholder until the JSON box contains valid JSON. If there is a parse error, it is shown under the panes.

Is my JSON sent to a server?

No. The text is parsed in the page and is not sent anywhere.