示例#1
0
        public static T DeserializeJsonWithoutToken <T>(this HttpContent content)
        {
            var jsonString = content.DeserializeJson <ApiReturn>();
            var json       = JsonConvert.SerializeObject(jsonString.data);

            return(JsonConvert.DeserializeObject <T>(json));
        }
示例#2
0
        public static string DeserializeJsonError(this HttpContent content)
        {
            var jsonString = content.DeserializeJson <ApiReturn>();

            return(jsonString.error);
        }