JSON Semantic Diff & RFC 6902 Patch

Semantic JSON comparison that ignores whitespace and key order. Pinpoints added, removed, and modified values, and generates standard RFC 6902 JSON Patches.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/json-diff" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/json-diff" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - JSON Semantic Diff & RFC 6902 Patch</a></div>

Why Line-by-Line JSON Diffing Fails

RFC 8259 defines JSON objects as unordered collections of zero or more name/value pairs. Standard text-line diffing treats key order differences and indentation whitespace as destructive changes, producing massive false-positive churn.

Understanding RFC 6902 JSON Patch

RFC 6902 defines a JSON document structure for expressing a sequence of operations to apply to a target JSON document. Commonly used in HTTP PATCH methods and Kubernetes resource updates.