I am trying to serialize JSON text to DataTable, as in the following.
List<Dictionary<string, string>> list =
JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(jsonText);
DataTable dTable;
dTable = (from p in list select p).CopyToDataTable();
I get the following error. How do I fix it?
ERROR :
Cannot deserialize JSON object into type
'System.Collections.Generic.List`1[System.Collections.Generic.Dictionary`2
[System.String,System.String]]'.