public static T DeserializeJsonWithoutToken <T>(this HttpContent content) { var jsonString = content.DeserializeJson <ApiReturn>(); var json = JsonConvert.SerializeObject(jsonString.data); return(JsonConvert.DeserializeObject <T>(json)); }
public static string DeserializeJsonError(this HttpContent content) { var jsonString = content.DeserializeJson <ApiReturn>(); return(jsonString.error); }