Example input
{"roles":["admin","editor"]}
---
{"roles":["viewer","admin","editor"]}
DataHub
Tools
JSON Diff Compare
Local-first
Compare two JSON objects and list added, removed, and changed paths locally.
The tool splits two JSON documents at a standalone --- or === line, parses both values, and recursively reports added, removed, and changed paths. Arrays are compared by index; the report is descriptive text, not an applicable JSON Patch.
{"roles":["admin","editor"]}
---
{"roles":["viewer","admin","editor"]}Index-based changes are reported for roles[0], roles[1], and roles[2].A value inserted at the start of an array shifts every later index. Keys containing dots or brackets can make report paths ambiguous.
RFC 6902 defines an applicable JSON Patch format. This tool emits a human-readable recursive comparison and does not implement that format.
Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.
Place --- or === on its own line between the two strict JSON values.
By numeric index, not by object identity or longest common subsequence.
No. The output is a text report and cannot be applied as RFC 6902 operations.
Yes. Values outside JavaScript's safe integer range may be rounded before comparison.