Apply JSON Merge Patch

data · N087 · starter-package 7.0.1

Apply a JSON Merge Patch to a workflow value. Record fields merge recursively and null members remove fields. A list or scalar patch replaces the entire target.

Example

Connected values

{"target":{"prefs":{"a":1,"b":2}},"patch":{"prefs":{"b":null,"c":3}}}

Result

{"result":{"prefs":{"a":1,"c":3}}}

Connector data types

DirectionConnectorTypeRequired
Inputtarget — Targetanyyes
Inputpatch — Patchanyyes
Outputresult — Resultanyon success

Errors and recovery

Connect both Target and Patch. A null field in a patch removes the field. To replace the whole target with null, connect a Null value directly to Patch.

JSON Merge Patch