convert this JSON->C#
[
{"ID_DO_Login":14, "firstname":"Timothy from Perth","lastname":"Simons" },
{"ID_DO_Login":42, "firstname":"Blake","lastname":"jim" }
]
We get this ..
// Root myDeserializedClass = JsonConvert.DeserializeObject<List>(myJsonResponse);
public class Root
{
public int ID_DO_Login { get; set; }
public string firstname { get; set; }
public string lastname { get; set; }
}
The correct Documentation comment should be this..
// List< Root> myDeserializedClass = JsonConvert.DeserializeObject<List>(myJsonResponse);
convert this JSON->C# [ {"ID_DO_Login":14, "firstname":"Timothy from Perth","lastname":"Simons" }, {"ID_DO_Login":42, "firstname":"Blake","lastname":"jim" } ]
We get this .. // Root myDeserializedClass = JsonConvert.DeserializeObject<List>(myJsonResponse);
public class Root
{
public int ID_DO_Login { get; set; }
public string firstname { get; set; }
public string lastname { get; set; }
}
The correct Documentation comment should be this.. // List< Root> myDeserializedClass = JsonConvert.DeserializeObject<List>(myJsonResponse);