JSON statistics

Client

Paste JSON to see structural stats—useful for estimating payload shape, debugging large trees, or comparing two documents informally before a diff.

Learn more: JSON statistics

Count structural properties of a parsed JSON value—depth is the maximum nesting of objects and arrays from the root.

Limits

Very large pastes may feel slow in the editor; stats themselves are a single tree walk. This tool does not persist or upload your JSON.

JSON statistics

?

Counts keys, objects, arrays, and value types recursively. Max depth is measured from the root value (root object depth 0).

Input size (chars)
111
Max nesting depth
3
Object count
4
Array count
1
Key count (total)
7
Strings / numbers / booleans / nulls
2 / 3 / 0 / 0

Common use cases

  • Estimate document shape before pretty-printing or compressing very large JSON responses.
  • Compare two payloads informally by depth, key counts, and value-type mix before running a structural diff.
  • Explain performance or memory questions with concrete nesting and size signals.

Common mistakes to avoid

  • Treating aggregate counts as semantic equivalence

    Two documents can share stats yet differ in every leaf value—pair with diff or schema tools when correctness matters.

  • Including secrets in screenshots of stats panels

    The original JSON may still be on screen elsewhere. Redact before sharing.

FAQ

Are statistics computed locally?

Yes. The JSON you paste is analyzed entirely in your browser.

Does this validate JSON syntax?

Invalid JSON fails early so counts are meaningful. Fix parse errors before relying on numbers.

Related utilities you can open in another tab—mostly client-side.