Skip to content
jsonblocks

How to visualize nested JSON

Nested JSON contains objects or arrays inside other objects or arrays. A visualizer helps you follow the hierarchy, check data types, and locate a value without counting braces.

Open the nested API example

Start with a small response

json
{
  "data": [{ "id": 7, "profile": { "name": "Ada", "active": true } }],
  "meta": { "next": null }
}

The root is an object. Its data property is an array; the first array item is an object. Inside that object, profile.name is a string and profile.active is a boolean. The null in meta.next is an explicit value, not a missing property.

Read the blocks and narrow your search

  1. Open the example or paste your JSON in the homepage input.

  2. Use the chevron on an object or array to collapse or expand that branch. Repeated rows may start collapsed.

  3. Keep Type badges enabled to distinguish 7 from "7", true from "true", and null from an empty string.

  4. Search for a key or value. Matches are highlighted; large files show a capped result set and a total count.

  5. Click the value to pin its path, then use Copy path in the path bar. For the name above, the path is $.data[0].profile.name.

Nested API response rendered as blocks with string, boolean, null, object and array badges; Ada Lovelace's name is selected
The synthetic API example in the block viewer. The pinned name has the concrete path $.data[0].name.

Object keys and array indices differ

Arrays use zero-based indices: [0] is the first element. A property containing a dot or space uses brackets, such as $["request.id"]. That key is different from $.request.id, which follows two nested properties.

Work through a large response

Open a .json file and expand the branches you need. Documents over 200,000 characters use background parsing and a read-only editor preview. The full document still powers search and copying. Edit full document restores the complete text editor and may take more layout time. Very deep trees have a rendering depth limit; copying a capped subtree lets you inspect it separately.

Frequently asked questions

Does visualizing JSON change the document?

Expanding, collapsing, searching, and pinning paths do not change the input. Format and Minify rewrite the text, so keep the original file when exact formatting or number precision matters.

Can I execute JSONPath filters here?

The viewer displays concrete paths to values. It does not execute general JSONPath filters, wildcards, or expressions. Use the path finder for a list of concrete paths and jq snippets.