JSON Statistics

See how big a JSON document is: bytes, nesting depth, number of keys, objects, lists and values by type, and the most common keys.

Processed on your device. Files are not uploaded

How to measure a JSON document

  1. Paste your JSON

    An API response or a data file.

  2. Read the figures

    Size, nesting depth, key counts and values by type are shown.

  3. Check the common keys

    A table lists the keys that appear most often, which helps you map an unfamiliar response.

Worked example

This is what JSON Statistics gives for its own sample values. Open the tool above and change anything to try your own.

JSON

{
  "id": 42,
  "user-name": "ada",
  "score": 9.5,
  "active": true,
  "tags": ["admin", "beta"],
  "address": { "city": "London", "zip": "N1 9GU" },
  "orders": [
    { "sku": "A-1", "qty": 2, "coupon": "SAVE10" },
    { "sku": "B-7", "qty": 1 }
  ]
}

Result

Size
253 bytes
Nesting depth
3
Objects
4
Lists
2
Keys (total, unique)
14 total, 12 unique
Strings
8
Numbers
4
True/false values
1
Most common keysTimes
qty2
sku2
active1
address1
city1

About JSON Statistics

See how big and how deep a JSON document is. It counts objects, lists, keys and every kind of value, and shows the most common keys, which helps when you are mapping an unfamiliar API response.

FAQs

How is the size counted?

In bytes of UTF-8 text, exactly as you pasted it.

What is depth?

How many levels of nesting the deepest value sits at.

Can I make it smaller?

Use JSON Minifier.

Related tools