JSON Patch Tester
Apply RFC 6902 add, remove, replace, move, copy and test operations to a JSON document, with pointer validation and atomic results.
Start with your input
Edit the example or replace it with your own text.
How to use JSON Patch Tester
- Paste the source document and a JSON Patch operation array into the two editors.
- Apply the patch; invalid paths and failed test operations report their operation number.
- Copy the complete result only after every operation succeeds.
Test ordered changes before sending an API request
JSON Patch expresses a sequence of operations, each using a JSON Pointer path. Array insertion can use the final dash token to append. Copy duplicates a value, while move removes the source before resolving the destination. Test compares JSON values structurally, so object key order does not create a false mismatch.
Failure does not expose a half-applied result
The tool works on a fresh copy and returns output only if the entire operation list succeeds. Missing parents, malformed pointer escapes, invalid array indexes and attempts to move a value into its own descendant are rejected. The source input is left intact. Numbers use the browser’s JSON number representation. This is an operation tester, not a generator that infers a patch from two documents.
Example input
{"name":"Ada","tags":["reader"],"active":false}How is JSON Patch different from JSON Merge Patch?
JSON Patch is an ordered operation array with explicit paths. Merge Patch uses an object-shaped update where null removes a property and arrays are replaced as a whole.
Is input uploaded?
Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.