Data: Merge JSON objects

Deep-merge two JSON objects.

Help Centre › Functions & Formulas

Deep-merge two JSON objects.

Add it to a process

In the process designer, open the Add step tab. Find Merge JSON objects under Data › JSON, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Base JSON objectYesThe base object to merge into
Override JSON objectYesThe object to merge on top of the base
VariableYesVariable name to store the result Default: data.
Deep mergeNoPerform a deep merge (recursively merge nested objects) Default: on.

What it gives back

  • {data} – Merged JSON

See all Data steps.

Errors

ErrorDescription
Invalid JSONOne or both inputs are not valid JSON

Tips

  • The override object wins on key conflicts
  • Set deep to true to merge nested objects recursively instead of replacing them

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.