Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Json deserialize error
Message
From
06/05/2016 17:14:31
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
06/05/2016 16:59:21
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01635955
Message ID:
01635976
Views:
68
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform