{
"answer": "success",
"data": [
{
"id": "1",
"gn": "2",
"mar": "3",
"mo": "4",
"mdf": "5"
},
{
"id": "1",
"gn": "2",
"mar": "3",
"mo": "4",
"mdf": "5"
}
]
}
public class Rootobject
{
public string answer { get; set; }
public Datum[] data { get; set; }
}
public class Datum
{
public string id { get; set; }
public string gn{ get; set; }
public string mar { get; set; }
public string mo { get; set; }
public string mdf{ get; set; }
}
var test = JsonConvert.DeserializeObject<Rootobject>(answres);
System.Diagnostics.Debug.WriteLine(test.answer);