pub fn serialize<T>(value: &T) -> Result<Object>where
    T: Serialize + ?Sized,