Skip to main content

set_nested_value_parts

Function set_nested_value_parts 

Source
pub fn set_nested_value_parts(
    data: &mut OwnedDataValue,
    parts: &[Arc<str>],
    value: OwnedDataValue,
)
Expand description

Same as set_nested_value but consumes a pre-split slice of path parts. Parts retain the original # prefix; strip_hash_prefix is applied at use time. Crucially, the “is the NEXT segment an array index?” decision looks at the raw (unstripped) parts[i+1]#20 parses as non-numeric, so the child container is an Object (key “20”), not an Array.