The test operation checks if the value at the specified path matches the expected value. If the test fails, the entire patch sequence is aborted. This enables conditional patching and optimistic concurrency control.
Verify a value before replacing it
Verify an entire object matches
Only remove if value matches
Use our free online JSON Patch generator to create test patches instantly
🚀 Open JSON Patch Generator