JSON Patch tool
Compare two JSON documents and generate RFC 6902 Patch, or apply the Patch locally and perform round-trip validation.
How to use the JSON Patch tool
JSON Patch tool processes input only in the current browser; it does not upload, connect to the internet, or save user data.
Input content
Enter the original JSON, target JSON, or RFC 6902 operation array.
Select a processing method
Generate add/remove/replace operations, or apply Patch and check paths and dangerous keys.
Check and export
After confirming that the result matches the target, copy or download Patch/JSON.
Limitations and Notes
- Reject prototype-pollution paths, infinite recursion, and oversized operation arrays.
- Diff does not infer move/copy; the generated result should still undergo semantic review in the target project.
- The tool only provides locally processed results; important configurations, secrets, documents, and published content must still be reviewed in the target environment.
FAQ
Will the input be uploaded to a server?
No. The page only uses browser memory, the local file API, and local resources already provided with the site.
Why is the __proto__ path rejected?
These properties may trigger prototype pollution, so the tool blocks them instead of risking modification of the object prototype.
Why do the results still require manual review?
Edge-case syntax, regional standards, third-party readers, and target runtime environments may differ; the tool does not replace final validation.