Encrypt Online
Choose theme
Privacy All tools run entirely in your browser.

JSON Patch Tester

Apply a JSON Patch array locally and inspect the exact before-and-after effect

Safety note: JSON Patch operations run only against the JSON you paste here. This page does not diff two documents for you; it applies the patch array exactly as written.
Apply a JSON Patch arrayPaste the original document and the patch array, then inspect the exact result document and operation count right away
Use RFC 6902-style operations such as add, remove, replace, move, copy, and test.
What JSON Patch Applies

JSON Patch applies an ordered array of operations against one JSON document. The order matters. If a path is wrong or an earlier operation changes the structure in a surprising way, later operations can fail.

Apply a JSON Patch Array
  1. Paste the original JSON document on the left.
  2. Paste the patch array on the right.
  3. Click Apply JSON Patch and inspect the exact result document, not just the operation count.
Why Patch Validation Helps

A patch can look structurally valid while still pointing at the wrong path or wrong array index. Running the patch locally against a real document is the fastest way to see whether the operations produce the state you expect.