JSON Patch Builder & Evaluator (RFC 6902)
Apply, preview, test, and generate RFC 6902 JSON Patch documents locally with atomic rollback guarantees and RFC 6901 pointer escaping.
JSON Patch Builder & Evaluator (RFC 6902)
Apply, preview, test, and generate RFC 6902 JSON Patch documents locally.
Overview
The JSON Patch Builder & Evaluator provides complete RFC 6902 patch processing and differential generation. You can apply operation sequences (add, remove, replace, move, copy, test) to target JSON documents with strict atomic rollback guarantees, inspect RFC 6901 pointer resolution and escaping (~0 and ~1), and automatically generate standardized patches by comparing original and modified documents.
How to Apply and Generate JSON Patch Documents
Select "Apply Patch" to execute existing RFC 6902 operations against a target document, or "Generate Patch from Diff" to create an operation array from two JSON files.
Input your target JSON and patch operations, or load one of the built-in presets for Profile Updates, RFC 6901 Path Escaping, or Atomic Rollback.
Click "Apply Patch" to run all operations. If any operation fails (such as an index out of bounds or a failed "test" condition), all changes are rolled back atomically and the target document remains untouched.
View the formatted JSON result, inspect individual operation steps, and copy or download the patched JSON document.
Target: {"title": "Guide", "author": {"role": "editor"}}. Patch: [{"op": "test", "path": "/author/role", "value": "editor"}, {"op": "replace", "path": "/author/role", "value": "lead-editor"}]Result: {"title": "Guide", "author": {"role": "lead-editor"}}The patch tests the current value before performing the update. If another writer had already modified the role, the patch would abort atomically with 0 partial writes.
- Local Execution: Evaluates JSON Patches purely in-browser with zero cloud uploads.
- Atomic Guarantee: Every patch transaction is evaluated against a clone; failures return the unmutated original.
- Array Operations: Supports exact index insertion and "-" end-of-array append semantics.
- Zero documents, patches, or keys are sent to external servers.
- All patching, pointer escaping, and diffing execute in browser memory.