c# - Error during deserialize JSON windows phone 8 -
I have an API that got the JSON code returns:
[{ "STARTDATE": 1409553000000, "ENDDATE": 1409570100000, "moduleCode": "# SPLUS0EBB2C", "activityDescription": "user interface design (Tjuna)", "staffMembers": [], "location": [{ "id": "E404A902125255D3330455204193CC29" "name": "HAA-H1-21", "key": "14124", "potential": 24, "url": null, "avoidConcurrencyLocationIds": []}], "studentSets": [ "INF3s", "INF4a"], "ActivityTypeName" "other" "ActivityTypeDescription": null, "Note": null, "highlights": false, "timetableKeys": [ "! 2013 studentsetgroup 9EEA55042B995043A2BC5739BF428E07"]}]
< / Pre>I deserialize this code:
RespondObject = Wait on JsonConvert.DeserializeObjectAsync & LT; Apicalls.Rooster & gt; (JSON); Class cock {public string startdate {receives; Set; } Public string end date {get; Set; } Public String Activity Details {Received; Set; } Public Location [] Location {Get; Set; } Public string studentSets {get; Set; }} Public square location {the name of the public string {get; Set; }}Every time I try to deserialize it is not possible to make Dirsiyl gives an error that Jason code anyone can help me with this problem?
cock location Code:
public class cock {The public began long time received {received; Set; } Public long term end {get; Set; } Public string moduleCode {get; Set; } Public String Activity Details {Received; Set; } Public listing & lt; Object & gt; Receive staff members { Set; } Public listing & lt; Location & gt; Places {received; Set; } Public listing & lt; String & gt; StudentSets {receive; Set; } Public String ActivityTipName {get; Set; } Description of the public goods activity type {receive; Set; } Public Objects Notes {get; Set; } Highlighting Public Bull {get; Set; } Public listing & lt; String & gt; Receive the timetable; Set; }}
public square location {public string id {get; Set; } The name of the public string {get; Set; } Public string key {get; Set; } Public Interoperability {Receiving; Set; } Public object url {get; Set; } Public listing & lt; Object & gt; Avoid End Space ID {Receive; Set; }}
var response object = wait JsonConvert.DeserializeObjectAsync & lt; List & lt; Epicol Reuter & gt; & Gt; (JSN);
Comments
Post a Comment