Skip to main content

insert_key_segment

Function insert_key_segment 

Source
pub fn insert_key_segment(
    current: &mut Map<String, Value>,
    segment: &KeySegment,
    value: Value,
)
Expand description

Walks segment, inserting value at the location it describes within current. current is a plain JSON object – the top-level row map for a column with no nesting, or a nested/array-item object for anything reached via Object/Array.