Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Json deserialize error
Message
De
06/05/2016 17:14:31
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
06/05/2016 16:59:21
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01635955
Message ID:
01635976
Vues:
61
I changed your code to this
                            if (response.IsSuccessStatusCode)
                            {
                                var result = await response.Content.ReadAsStringAsync();
                                // result shows a valid string. 
                                var promotemp = JsonConvert.DeserializeObject<List<DetailsHeader>>(result);
                             }
And if failed with the same error as my code did. Has to be a problem with the DetailsHeader class. What is really weird is I have another class that is pulling different data including a DateTime and it is working fine. I think I am going to pull this into a temp project without Xamarin and see what happens.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform