What is a JSON tree view?

JSON from an API or a config file is often one long line, or hundreds of nested lines, which makes it hard to see what's inside. A tree view shows every object and array as a branch you can open and close, so you can walk down to the part you need, such as one item in a long API response.

Tool description

Paste JSON into JSON Input, and JSON Tree View shows it as a tree. Click an object or an array to open or close it. Each branch shows how many keys or items it holds, as in Array (20), and an icon marks the type of each value: text, number, true or false, or null.

Initial expansion depth sets how many levels are open at first, 3 by default. Tick Expand All to open every level at once. When the JSON isn't valid, the error message from your browser's JSON parser shows above the tree, usually with the position of the problem.

Features

  • Opens and closes objects and arrays with a click
  • Shows how many keys or items every object and array holds
  • Sets how many levels open at first, or opens everything at once

Tips

  • The JSON has to be strict JSON, so comments, single quotes and a comma after the last item are errors. The JSON repairer fixes those.
  • To read the JSON as indented text instead, use the JSON formatter.
  • The JSON is read in your browser and isn't sent anywhere.