A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"name":"Alice","age":30}
---
{"name":"Alice","age":31,"email":"alice@test.com"}[
{
"op": "replace",
"path": "/age",
"value": 31
},
{
"op": "add",
"path": "/email",
"value": "alice@test.com"
}
]
Generate or apply RFC 6902 JSON Patch operations. Part of the DevTools Surf developer suite. Browse more tools in the JSON collection.