Youโ€™re the Expert!

Menu

Workstation DEV-01 100% Client-Side

JSON Formatter, Validator, Tree & Semantic Diff

Beautify, minify, sort keys, inspect nested paths, and compare JSON payloads privately inside your browser.

Input JSON
Waiting for input... 0 B ยท 0 keys
Formatted Output
Click any key in the tree below to copy its exact JavaScript/Python-style access path.
Click "Compare JSON Objects" to inspect added, removed, and changed keys regardless of key ordering.

How Validation, Key Sorting & Semantic Diff Work

1. Strict RFC 8259 Validation

JSON requires double-quoted keys ("key"), no trailing commas, and no comments. When invalid syntax is detected, the parser extracts the character offset and maps it to exact Line & Column coordinates for fast debugging.

2. Recursive Depth & Key Metrics

Payload size and structural complexity are calculated recursively:

depth(node) = 1 + max(depth(child))

3. Order-Independent Semantic Diff

Unlike plain text line diffs, semantic JSON diffing flattens and compares keys recursively (a.b[0].c), ignoring key order or whitespace differences so only real value or type changes are highlighted.

Copied!


Pynfinity
Install Pynfinity Add to home screen for the best experience