Refactored response objects for simpler json deserialization.