string json2 = "[{\"id\":\"1\",\"datetime\":\"04/10/2017\",\"col1\":\"1\",\"col2\":\"2\",\"col3\":\"3\"}]"; List<data> data2 = JsonConvert.DeserializeObject<List<data>>(json2); public class data { public int id { get; set; } public string datetime { get; set; } public int col1 { get; set; } public int col2 { get; set; } public int col3 { get; set; } }
data mydata = JsonConvert.DeserializeObject<data>(json2);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)