set_path

Function set_path 

Source
pub fn set_path(
    data: Value,
    path: &Vec<PathElement>,
    value: Value,
    opts: &SetPathOpts,
) -> Result<Value, IJsonError>
Expand description

Set a value at the specified path within JSON data. Creates intermediate objects/arrays as needed. Returns the modified data.