USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Set a property or array element in the active AMSX JSON object
Navigates to the node identified by the JSONPath in cmd and assigns a value. For object nodes, arg 0 names the child property to set. For array nodes, leave arg 0 blank to clear the array, supply an integer to replace that element, or any other text (e.g. "add") to append. Name-value pairs from arg 2 onward are used to replace %placeholder% tokens within the value string before assignment.
| Parameter | Description |
|---|---|
| cmd | JSONPath selector for the parent node to update |
| Argument 0 | child property name (for objects), integer index (for arrays), "add" to append (for arrays), or blank to clear an array |
| Argument 1 | value to assign; may contain %name% tokens replaced by subsequent argument pairs |
| Argument 2 | first token name to replace in the value (token appears as %name% in arg 1) |
| Argument 3 | replacement value for arg 2 token, then further name/value pairs follow |
JsonSet "JSONPath selector for the parent node to update", "child property name (for objects), integer index (for arrays), "add" to append (for arrays), or blank to clear an array", "value to assign; may contain %name% tokens replaced by subsequent argument pairs", "first token name to replace in the value (token appears as %name% in arg 1)", "replacement value for arg 2 token, then further name/value pairs follow"