Function sj::insert

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

Inserts new item into an object

Returns previous value (if it existed).