- What is a JSON Patch?
- A JSON document describing a sequence of changes (add, remove, replace, move, copy, test) to apply to another JSON document. Defined in RFC 6902 and widely used in REST APIs and CRDTs.
- Can I generate a patch from two JSON files?
- Yes — paste the 'before' and 'after' documents and the tool emits a patch that transforms one into the other. Paste the patch and a source document to apply it.
- What's the difference between JSON Patch and JSON Merge Patch?
- JSON Patch is an array of operations — precise but verbose. JSON Merge Patch (RFC 7396) is simpler: it looks like a partial JSON document. Use Merge Patch for simple updates, JSON Patch for moves, removals, and conditional replacements.
- Does it validate patches before applying them?
- Yes. If a 'test' operation fails or a path doesn't exist, the tool reports the error instead of producing a corrupt result.