JSON Analyzer - JSON Structure Statistics Tool
Analyze JSON structure: key count, depth, type distribution, array stats, and more.
Paste JSON and click Analyze to see statistics.
JSON Analyzer Features
Depth Analysis
Find maximum nesting depth in your JSON.
Type Distribution
See percentages of strings, numbers, booleans, etc.
Array Statistics
Min, max, and average array lengths.
String Metrics
Longest, shortest, and average string lengths.
Duplicate Detection
Warn about duplicate keys in objects.
Client-Side Privacy
All analysis in your browser.
Common Use Cases
API Response Inspection
Quickly understand API response structure.
Schema Design
Analyze data before designing schemas.
Data Quality Check
Detect inconsistencies and anomalies.
Performance Tuning
Identify deeply nested structures affecting performance.
JSON Analyzer FAQ
What statistics does the analyzer provide?
Total key-value pairs, max depth, leaf nodes, array count, type distribution with percentages, array stats, string stats, top-level keys, and duplicate key detection.
How is type distribution calculated?
The tool recurses through all values, counting each leaf value's type. The distribution is shown as percentages with CSS bar charts.
What counts as a leaf node?
Leaf nodes are values that are not objects or arrays — strings, numbers, booleans, and null values.
Can I analyze deeply nested JSON?
Yes, the tool handles arbitrary nesting. Very deep structures (>1000 levels) may hit browser recursion limits.
Are duplicate keys a problem?
While JSON.parse keeps the last value, duplicate keys often indicate data issues. The analyzer warns when duplicates are detected.