Skip to content

#setAt

Adds or modifies a JSON node at a variable-based path, creating missing parents.

#setAt(@variable.path, value)
Category StatementsValid in Statement
Name Type Description
target path A path rooted at the #using variable.
value any A literal, outer variable, or non-statement method result.
#setAt(@x.complexObject.new.value, 3)

#removeAt · #when · #using