Serialize a group of fields.