Skip to content
OddsockLocal
Local
Source text
{
  "color": "red",
  "count": 2
}
1 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste JSON into Source text.
  2. Set Tree depth. Use 8 unless you want the outline to stop early.
  3. Read the root summary, then the indented children.
  4. Copy the outline.

What is JSON viewer?

A large document pretty-printed is still a wall of braces. JSON viewer walks the value and prints one line per node: the key, then a summary. An object summary is Object and the number of keys. An array summary is Array and the length. Scalars are printed as JSON, so strings keep their quotes and numbers stay bare.

Read more

Children are indented two spaces and printed only while the depth is below Tree depth. The default is 8, which is enough for the color object and for most API payloads. Set the depth lower when you want the outline to stop at the top keys. The root line is always $, the document itself. This is a text outline you can copy. The studio tree view uses the same print.

Use cases

  • An engineer scanning a response wants the two top-level keys without reading a pretty-printed block.
  • A reviewer sets Tree depth to 1 to confirm the root is an object of a known size.
  • Someone explaining a payload in a ticket pastes the outline instead of the raw braces.
  • A nested items array is opened level by level by raising the depth until the names appear.
  • A teacher shows Object(2) next to the pretty form so a class sees structure and text as two views of one value.

Outline of color and count

{"color":"red","count":2}. Tree depth left at 8.

$: Object(2) "color": "red" "count": 2

Why use Oddsock

The outline answers how wide each object is before you scroll a pretty-printed file looking for the key.

Related tools

Using this tool

The root has two keys, color and count. An array of three items would read Array(3).