serialize/deserialize object values