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