WHAT IT DOES
Apply the patch before an API or migration has to.
Paste a source JSON document and either an RFC 6902 operation array or an RFC 7396 Merge Patch. The operation is applied to a clone of the source and the complete resulting document is shown for review and copying. Invalid pointers, failed test operations, missing paths, malformed operations, and invalid JSON stop the run with a specific error instead of leaving a partially patched result.
Why use it?
A small patch can change a large document. Previewing its exact result helps catch the wrong path, an unexpected array update, or a failed precondition before using it elsewhere.
How to use this tool
- Paste the original JSON and the patch into their respective panes.
- Choose JSON Patch or Merge Patch to match the notation you supplied, then apply the patch.
- Review the resulting document before copying it. If an operation fails, fix the patch or source instead of treating the error as a completed update.
Details and limitations
- JSON Patch supports add, remove, replace, move, copy, and test operations with RFC 6901 pointer escaping.
- Merge Patch recursively updates object members, removes keys whose patch value is null, and replaces arrays or scalar values as complete values.
- The source document is cloned before every run, so applying the same patch repeatedly always starts from the text in the source pane.
- Prototype-modifying pointer segments are refused by the patch engine rather than written into browser objects.