JSON Analyzer
Compute structural statistics for any JSON: depth, type counts, array lengths, key frequency, and size.
$json
0 chars1 lines
Related Tools
FAQ
- What does max depth mean?
- Max depth is the number of nesting levels in the deepest part of the JSON tree. A flat object has depth 1. Each nested object or array adds another level. High depth can indicate complex or deeply recursive data structures.
- How is estimated size calculated?
- The estimated size is the byte length of the original JSON string as passed in. This reflects the raw UTF-8 size of the document, which is the actual size when transmitted over a network or stored to disk.
- What is key frequency useful for?
- Key frequency shows how many times each key name appears across all objects in the document. In arrays of objects this is useful for finding which fields are consistently present and which are sparse or inconsistent.
JSON Analyzer recursively walks any JSON document and computes a rich set of structural statistics: total keys, unique key names and their frequency, maximum nesting depth, value type distribution (string, number, boolean, null, array, object), array length statistics (min, max, average), object count, and estimated document size. Useful for understanding the shape of large or unfamiliar JSON payloads.