Data: Set JSON value

Set a value in a JSON object at a path.

Help Centre › Functions & Formulas

Set a value in a JSON object at a path.

Add it to a process

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

Fields

FieldRequiredWhat it does
JSON dataYesThe data variable or JSON string to process
Dot-notation pathYesThe JSON path expression
Value to setYesThe value to set at the specified path
VariableYesVariable name to store the result Default: data.

What it gives back

  • {data} – Modified JSON

See all Data steps.

Errors

ErrorDescription
Invalid JSONThe data is not valid JSON
Invalid pathThe specified path is not valid

Tips

  • Intermediate keys are created automatically if they do not exist
  • Use this to build JSON payloads dynamically for API calls

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.