Serialize object properties