pub fn insert(&mut self, key: &str, value: Value) {
        let keys = key.split('.');
        let mut element = &mut self.json;
        for key in keys {
            if !element[key].is_null() {
                element[key] = Value::Object(Map::new());
            }
            element = &mut element[key];
        }
        *element = value;
    }
/// Inserts (or replaces) a specified value.
Inserts (or replaces) a specified value.
Inserts ( or replaces ) a specified value .
pub fn insert(&mut self, key: &str, value: Value) {
        let keys = key.split('.');
        let mut element = &mut self.json;
        for key in keys {
            if !element[key].is_null() {
                element[key] = Value::Object(Map::new());
            }
            element = &mut element[key];
        }
        *element = value;
    }
pub fn insert ( & mut self , key : & str , value : Value ) { let keys = key . split ( '.' ) ; let mut element = & mut self . json ; for key in keys { if ! element [ key ] . is_null ( ) { element [ key ] = Value :: Object ( Map :: new ( ) ) ; } element = & mut element [ key ] ; } * element = value ; }
Inserts (or replaces) a specified value.
Inserts ( or replaces ) a specified value .
&mut self
key
&str
value
Value
&mut self
key
&str
value
Value