Skip to content
JSON

Merge Patch (RFC 7386)

Partially update JSON documents.

#patch#rfc7386#merge

Code

json
// Original document:
{ "a": "b", "c": { "d": "e", "f": "g" } }

// Patch document:
{ "a": "z", "c": { "f": null } }

// Result after merge-patch:
{ "a": "z", "c": { "d": "e" } }