#setAt
Adds or modifies a JSON node at a variable-based path, creating missing parents.
#setAt(@variable.path, value)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
target |
path |
A path rooted at the #using variable. |
value |
any |
A literal, outer variable, or non-statement method result. |
Examples
Section titled “Examples”Set a deep value
Section titled “Set a deep value”#setAt(@x.complexObject.new.value, 3)