JSON stats
Paste or drop your data here, or open a file.
New to Bracely?
Everything stays in your browser.
Output appears here
Paste or open your data in the input box. It never leaves your browser.
JSON Stats
Get a quick profile of any JSON document: its size, how deeply it nests, how many keys it has, and how many strings, numbers, booleans, nulls, arrays and objects it contains.
Example: the shape of an API response
A small paginated response. The stats show its size, how deep it nests, how many keys it has and how many values of each type, which is a quick way to compare two responses or spot an unexpected null:
Input
{
"page": 1,
"total": 2,
"next": null,
"data": [
{
"id": 1,
"email": "[email protected]",
"tags": [
"admin"
],
"score": 4.5
},
{
"id": 2,
"email": "[email protected]",
"tags": [],
"score": null
}
]
}Output
Root type · object
Size · 288 bytes
Nesting depth · 4
Object keys · 12
number values · 5
object values · 3
array values · 3
string values · 3
null values · 2
How do I use the JSON stats?
- Paste or open JSON.
- Read the stats in the Output box.
- Open Field explorer for per-field details.
What does the JSON stats do?
- Size in bytes
- Nesting depth and key count
- Values by type
When to use the JSON stats
Before you write code against a payload, or when two responses don't behave the same, a few numbers tell you a lot: how big it is, how deep it nests, how many keys it has and how many values of each type. An unexpected null count or a much deeper structure is often the first sign of what changed.
Size is the number of bytes as pasted. Depth counts how many objects and arrays are nested inside each other, and object keys counts every key at every level. The type counts cover every value, including those inside arrays. For per-field details, such as which fields are sometimes missing or null, open Field explorer; to see which parts take the most space, open Size map.
Frequently asked questions
- Why is the size different from the file size?
- The size counts the text as it is in the editor, in UTF-8 bytes. A file saved with Windows line endings or a byte order mark has a few more bytes; Minify shows how small the JSON can get.
- What counts as nesting depth?
- Each object or array inside another adds one level. {"a": [{"b": 1}]} is three levels deep: the outer object, the array and the object inside it.
- Can I see stats per field?
- Yes. The Field explorer lists every field with its types and how often it is missing or null.
- Is my data uploaded?
- No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.
More JSON tools
Bracely has 108 JSON tools in one page. Related ones:
- JSON field explorer
- Hex viewer
- API tester
- Word counter
- HAR to OpenAPI
- WebSocket & SSE
- HAR analyzer
- API test runner
- Postman collection runner
- OpenAPI response validator
- Swagger response validator
- Mock API server
- Fake REST API
- SSE stream viewer
- JSON table viewer
- JSON visualizer
- JSONPath Tester
- JMESPath tester
- JSON Formatter
- JSON Validator
- JSON Viewer
- JSON Repair
- JSON Diff
- JSON to YAML
- JSON to CSV
- jq Playground
Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram