Sets value within a given object at the position specified by locator. Locator may only contain "object property" and "array index" items.
locator
Example:
setValueAtLocator({'name': 'John'}, '$.lastName', 'Doe') == {'name': 'John', 'lastName': 'Doe'} Copy
setValueAtLocator({'name': 'John'}, '$.lastName', 'Doe') == {'name': 'John', 'lastName': 'Doe'}
More examples in tests.
Sets value within a given object at the position specified by
locator
. Locator may only contain "object property" and "array index" items.Example:
More examples in tests.