Skip to main content
Back to Developer Tools

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.

100% In-Browser Evaluation: JSON Patch execution and differential computation occur purely in your browser memory.
Atomic Guarantees
Try Presets:
Tool Documentation & Guide

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

1Choose Evaluation Mode

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.

2Paste or Load Documents

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.

3Execute with Atomic Protection

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.

4Inspect & Copy Patched Result

View the formatted JSON result, inspect individual operation steps, and copy or download the patched JSON document.

Updating an Author Role with Atomic Test Verification
Input
Target: {"title": "Guide", "author": {"role": "editor"}}. Patch: [{"op": "test", "path": "/author/role", "value": "editor"}, {"op": "replace", "path": "/author/role", "value": "lead-editor"}]
Output
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.

Processing & Environment Constraints
  • 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.
100% Client-Side Privacy
  • Zero documents, patches, or keys are sent to external servers.
  • All patching, pointer escaping, and diffing execute in browser memory.