Deserialize the category field of events.