Back

JSON Shape Inspector

Validate JSON syntax and inspect structure details (depth, keys, length).

Data is processed locally in your browser. No upload.

JSON Shape Inspector: Guide

Intent
JSON validator / inspector online for quick debugging: validate JSON syntax and inspect structure (depth, keys, array length) when an API response is hard to read.
What it does
Parses JSON and reports root type, maximum nesting depth, and either key count (object) or length (array).
Key features
Syntax validation, Depth metric, Keys/length metric
Privacy
Everything runs locally in your browser. No uploads.
Best for
  • Developers debugging 'JSON parse error' issues and broken API responses
  • QA and analysts sanity-checking webhook payloads or exports
  • Anyone who wants a JSON inspector online (not a pretty printer)
Why this tool
  • Instant complexity signals (depth, keys, length) for quick triage
  • Local-only: paste sensitive JSON safely without uploading
  • Faster than opening an IDE for one-off checks

How to use

  1. 1Paste JSON into the input box.
  2. 2Click Inspect JSON.
  3. 3If invalid, fix syntax and try again.
  4. 4Use depth/keys/length as quick complexity signals.

Common mistakes

  • JSON must use double quotes (single quotes are invalid).
  • Trailing commas are not allowed in JSON.
  • This tool does not format or pretty-print JSON; it only inspects structure.

Examples

Object at the root
Input: {"user":{"id":1,"name":"Alice"}} Result: Type: object Depth: 3 Keys (root): 1
Array at the root
Input: [{"id":1},{"id":2},{"id":3}] Result: Type: Array Length: 3