Two documents, one real change set
Illustrative exampleThe right-hand document lists its keys in a different order, changes one value, adds one key and drops another. Only the last three are real differences.
{ "id": 4821, "status": "pending", "items": [{ "sku": "A-100", "qty": 2 }], "meta": { "source": "web", "retries": 0 }}{ "status": "shipped", "id": 4821, "items": [{ "sku": "A-100", "qty": 2 }], "meta": { "source": "web", "carrier": "DHL" }}- Modified
statusModified: "pending" on the left, "shipped" on the right. - Added
meta.carrierAdded: the key exists only in the right-hand JSON. - Removed
meta.retriesRemoved: the key exists only in the left-hand JSON. - Unchanged
idUnchanged: same value, different position — not a difference when key order is ignored.
