Function sj::insert

source ·
pub fn insert<K, V>(object: &mut Object, key: K, value: V) -> Option<Value>where
    K: Into<ObjectKey>,
    V: Into<Value>,
Expand description

Inserts new item into an object

Returns previous value (if it existed).