format_json_visualizer
Parse JSON into a validated tree and structural summary with node counts, depth, and type statistics. Use to inspect shape of nested data.
Instructions
JSON Tree Visualizer and Structure Analyzer. Parse a JSON document into a validated tree and structural summary: confirms the JSON is well-formed, returns the parsed value, counts every node, and tallies key, depth and type statistics for exploring deeply nested data. Use format_json to pretty-print or minify JSON, data_json_path_evaluator to query nodes with JSONPath, data_json_schema_validator to check an instance against a schema, and webdev_json_to_typescript to emit TypeScript interfaces; use this tool when you only need to inspect shape, depth and node/type counts. Runs locally on the JSON you provide: read-only, non-destructive, contacts no external service, and is rate-limited (60 requests/minute for anonymous callers). Invalid JSON returns isValid:false with the parser error message instead of an HTTP error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON document to parse and analyze, as a raw string. Blank input returns isValid:false with empty statistics; malformed input returns isValid:false with the parser error. The alias "input" is also accepted. | |
| input | No | Alias for json (used when json is omitted). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isValid | No | True when the input parsed as well-formed JSON. | |
| parsed | No | The parsed JSON value (object, array, or scalar); null when invalid or blank. | |
| error | No | Parser error message when invalid; empty string otherwise. | |
| nodeCount | No | Total number of nodes (every value, including container nodes) in the parsed tree. | |
| statistics | No | Structural tallies; null when input is invalid or blank. |