I am trying to parse google's API response json formatted string into datatable.
I tried using using Newtonsoft.Json;
and doing this:
var json = new WebClient().DownloadString(textBox1.Text);
DataTable tester = (DataTable)JsonConvert.DeserializeObject(json.ToString(), (typeof(DataTable)));
I am getting this error: Additional text found in JSON string after finishing deserializing object.
When I run the string throught JSONLint, it is saying that the string is Valid.
here is json:
http://jsfiddle.net/q4XqQ/
我最终解析了json字符串并编写了一些效果很好的正则表达式。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.