You can cal to_hash on a response object.