Compare & Diff

JSON Patch

Apply RFC 6902 patch operations to a document and preview the result.

Browser private
JSON Input
Loading editor…
1 line 0 characters0.0 KB UTF-8
RFC 6902 PATCH
Loading editor…
Loading editor…
Preview your result here
Ready when you are| Local processing
|

How to use JSON Patch

  1. Enter source JSON and a patch array.
  2. Run the patch and inspect errors or the changed document.
  3. Apply only after reviewing the preview.

Input: JSON + patch array. Output: Patched JSON.

Try a small example

Use the workspace's Sample action to load example data, or paste this input and run the tool. Loading an example is an explicit action.

{"name":"Ada","active":true,"scores":[9,12],"address":{"city":"Pune"}}

What to keep in mind

Patch paths are JSON Pointers. Operations run in sequence, so later indexes depend on earlier changes; failed test operations report an error.

Your source and result are separate. Review transformations before applying them, and download an original copy when preserving exact input matters.

Continue your workflow

Read practical JSON guides or learn how local processing works.