Skip to main content

json_set_path

Function json_set_path 

Source
pub fn json_set_path(
    root: &mut Value,
    parts: &[&str],
    value: Value,
) -> CoreResult<()>
Expand description

Set a value at a dot-delimited path in a JSON object, creating intermediate objects as needed.

ยงErrors

Returns CoreError::Validation if the path is empty or if setting the path fails.