You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was try to deserialize json data to dynamic format by wiki documentation but always fail.
and then i have an idea to change the format back to JsonObject and working.
Your Wiki Reference
Deserialize JSON String
Using dynamic
dynamic json = SimpleJson.DeserializeObject(data);
string firstName = json.first_name;
DateTime startDate = json.startDate
int voteCount = json.voteCount
List results = json.results;
My right way
Deserialize JSON String
Using dynamic
dynamic json = SimpleJson.DeserializeObject(data);
string firstName = json["first_name"];
DateTime startDate = json["startDate"];
int voteCount = json["voteCount"];
List results = json["results"];
The text was updated successfully, but these errors were encountered:
Hello,
I was try to deserialize json data to dynamic format by wiki documentation but always fail.
and then i have an idea to change the format back to JsonObject and working.
Your Wiki Reference
Deserialize JSON String
Using dynamic
dynamic json = SimpleJson.DeserializeObject(data);
string firstName = json.first_name;
DateTime startDate = json.startDate
int voteCount = json.voteCount
List results = json.results;
My right way
Deserialize JSON String
Using dynamic
dynamic json = SimpleJson.DeserializeObject(data);
string firstName = json["first_name"];
DateTime startDate = json["startDate"];
int voteCount = json["voteCount"];
List results = json["results"];
The text was updated successfully, but these errors were encountered: