Skip to main content

value_set

Function value_set 

Source
pub fn value_set(root: &mut Value, path: &str, new_value: Value) -> Result<()>
Expand description

Set a value at a dot-notation path, creating intermediate mappings as needed.

ยงErrors

Will return Err if an intermediate value exists but is not a mapping.