Count the structure of a JSON document
The analyzer reports how many objects, arrays, strings, numbers, booleans and null values occur in a valid JSON document. It also reports total values, maximum nesting depth, object-property count and the subset of number values that are integers. Paste JSON and choose Analyze types to produce a downloadable JSON report.
Example: a small user record
The example {"name":"Ada","scores":[2,4],"active":true,"note":null} contains seven values: the root object, one string, one array, two numbers, one boolean and one null. The two score values are at depth two, so maximum depth is two. There are four object properties and two integer numbers. Keys such as name and scores are property names, not additional string values.
Counting conventions
The root has depth zero and always counts as one value. Containers count even when empty: {} has one object and zero properties, while [] has one array. Every array element and object member value contributes a further value. Object-property totals add member counts across every object; array positions are not object properties in this report. Null is reported separately rather than following JavaScript's historical typeof null behavior.
An integer is a parsed number with no fractional part, so 2, 2.0 and 2e0 all count toward integerNumbers. That field is a subset of number counts and should not be added again when totaling types. Strings such as "2", "true" or a date-like string remain strings. The tool does not infer semantic types, validate a schema or decide whether a field should be nullable.
Limits and troubleshooting
Use strict JSON without comments, trailing commas, undefined or NaN. Duplicate object keys are rejected so the counts cannot silently omit overwritten values. The reader limits input to 200,000 characters, 20,000 values and 64 nesting levels. Unsafe integer and nonfinite values are rejected; other numbers use JavaScript floating-point precision. That can normalize decimal spelling and affect the integer subset for precision-sensitive decimals. Quote exact identifiers or decimal strings when their original representation matters.
Processing takes place in the browser. Download the report if you need to compare two datasets manually; it contains counts, not the original document. Editing the input clears the prior report. Use JSON Pointer Resolver to isolate a subtree, then analyze it separately, or JSON Array Deduplicator when repeated whole array values need review.
Nonzero numbers too small to remain nonzero in JavaScript, such as 1e-400, are rejected rather than silently becoming zero.





