Replace a Value in a JSON Object

Sets a value at a given path inside a JSON object. Use it to update one field of a structured object without rebuilding the whole thing.

What it does

  • Navigates to the specified path within the JSON object.
  • Replaces the value found there with the replacement value.
  • Returns the updated object.

Inputs

NameTypeDescription
JSON ObjectObjectjson object to lookup against
JSON PathStringJSON path for lookup
Replacement ValueStringReplacement Value

Outputs

NameTypeDescription
SuccessBooleanWhether successfully replaced the value
Result ValueObjectResult value

Notes

  • The JSON path identifies which field to update, for example customer.address.city.