Skip to main content

set_path

Function set_path 

Source
pub fn set_path(
    root: &mut Value,
    path: &str,
    value: &Value,
    keyed_lists: &[KeyedList<'_>],
) -> DocumentResult<()>
Expand description

Set a value at the given dot-path. value is inserted as-is at the leaf — no coercion happens here; callers that accept CLI strings (e.g. the afdata binary) coerce them toward the existing type via crate::document::coerce::coerce_values_typed before calling this.