protected object Deserialize(MediaTypeContent content, Type type) { var text = Encoding.UTF8.GetString(content.ToArray()); var json = JsonConvert.DeserializeObject(text, type); Logger.Debug("Response.Content.JSON: {@json}", json); return(json); }