How to use JSON Diff
Compare two JSON values and locate fields that were added, removed or changed. Object properties are compared by name instead of their placement on a line.
- Paste the original and Second JSON document, then run the comparison.
- Read each changed path and its before or after value.
- Select Compare JSON and review the result.
Example input
{"title":"Field Notes","inStock":true,"quantity":12,"tags":["paper","stationery"]}Example use
Compare a saved API fixture with a newer response to verify whether a known field changed or a new item appeared in an array.
Output and compatibility
Differences in whitespace and object key order are ignored. Arrays are positional, so inserting an item can change many indices. The comparison operates on parsed values; use a text diff for exact number spelling or whitespace changes.
Compare arrays according to their meaning
Use a small pair of inputs to confirm whether array order matters to your application. Reorder both sides consistently by a stable record ID before comparing an unordered inventory. Preserve the original order for navigation, event history or any other sequence whose order changes the meaning. Scan changed root paths before reviewing deeper changes that may derive from the same edit.
Troubleshooting
If moving one array item produces many changes, sort or align arrays by a stable key in your source workflow before comparing. Check both inputs are individually valid JSON.
For a simple human-readable pairing, format the JSON before using a line-based comparison.
Frequently asked questions
Does reordered object key order count?
No. Objects are compared by key and value.
Does it compare lists as sets?
Arrays are compared by position.
Can I see exact text differences?
Use Text Diff Checker for spacing, escape sequences and formatting.
Does it generate a patch I should apply automatically?
The report describes changed paths. Review it before applying any edits.
Can I compare data against required key types?
Use JSON Schema Validator instead of comparing two instances.
Does it compare quoted and unquoted numbers as the same kind?
A number and a string containing those digits have different types and can show as modified.
Does changed capitalization inside a string matter?
Yes. The parsed string values differ.