Data Transform
JSON Merge Patch API
Applies an RFC7386 JSON Merge Patch where null deletes a key and nested objects recurse, returning the merged document. Answers 'How do I apply an RFC7386 merge patch?', 'How does null-deletes-key merging work?'.
Price$0.01per request
MethodPOST
Route/v1/data-transform/json-merge-patch
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformmerge-patchrfc7386mergejsonpatchwrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/json-merge-patchExample request
{
"target": {
"a": 1,
"b": {
"x": 1,
"y": 2
}
},
"patch": {
"b": {
"y": null,
"z": 9
},
"c": 3
}
}Example response
{
"result": {
"a": 1,
"b": {
"x": 1,
"z": 9
},
"c": 3
}
}Input schema
{
"type": "object",
"required": [
"patch"
],
"properties": {
"target": {
"type": "object",
"examples": [
{
"a": 1,
"b": {
"x": 1,
"y": 2
}
}
]
},
"patch": {
"type": "object",
"examples": [
{
"b": {
"y": null,
"z": 9
},
"c": 3
}
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}