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); }
protected T Deserialize <T>(MediaTypeContent response) { return((T)Deserialize(response, typeof(T))); }