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
| Name | Type | Description |
|---|---|---|
| JSON Object | Object | json object to lookup against |
| JSON Path | String | JSON path for lookup |
| Replacement Value | String | Replacement Value |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether successfully replaced the value |
| Result Value | Object | Result value |
Notes
- The JSON path identifies which field to update, for example
customer.address.city.