json.cihat.dev

JSON graph viewer

Every object and array becomes a card, every nesting an edge, laid out left to right so you can see the shape of the data at a glance.

Input

How to use it

  1. Paste JSON or open a file. A sample order is drawn as soon as the page loads.
  2. Drag the background to move around. Use the + and − buttons, or hold Ctrl (⌘ on a Mac) and scroll, to zoom; pinch on a phone.
  3. Click a card to select it and copy its path. Start graph here redraws the graph from that card, and the trail above takes you back.
  4. Download the drawing as SVG for documents and slides, or as PNG.

How the graph is drawn

Each object or array is one card. Plain values (text, numbers, true, false, null) are rows inside their card, coloured by type. A row that holds another object or array shows its size, such as {4} or [12], and an edge runs from that row to the child’s card. Columns are nesting levels, so the deeper a value sits, the further right it is.

Big documents stay readable

The graph draws up to 400 cards, level by level from the top, and shows up to 12 plain values and 48 nested items in each card; the rest are counted in a +N row. Branches beyond the 400 cards stay closed and are marked with +; click one to redraw the graph from there. For reading a large file value by value, the tree in the JSON viewer is faster.

Questions people ask

Is my JSON uploaded?

No. The graph is computed and drawn in your browser; nothing is sent anywhere.

Can I edit the JSON in the graph?

No, the graph is for reading. Edit the input above it and the graph redraws.

Why are some branches closed?

To keep the drawing readable, only the first 400 cards are drawn. Click a row marked + to start the graph from that branch.

What do the export files contain?

The SVG is a vector drawing with the colours of the current theme written in. The PNG is a picture of the whole graph at up to twice its size on screen.