JSON转换到表格
{TOTALCOUNT:3976,ROOT:[{'code':'2020052','ID':'20596','TOTAL':'225'},{'code':'2020064','ID':'20608','TOTAL':'347.7'},{'code':'2020112','ID':'20673','TOTAL':'19.1'},{'code':'2020118','ID':'20679','TOTAL':'285.8'},{'code':'2020126','ID':'20688','TOTAL':'183'},{'code':'2020006','ID':'20530','TOTAL':'698.8'}HttpWebResponse res = (HttpWebResponse)request.GetResponse();
StreamReader sReader = new StreamReader(res.GetResponseStream(), System.Text.Encoding.UTF8);
string totalcount = sReader.ReadToEnd();
这是从网页提取的数据。查看totalcount的数据查询为上列数组格式;
求高人指点怎么样把上列格式转成到grid表格中 --------------------编程问答-------------------- 参考http://stackoverflow.com/questions/5180382/convert-json-data-to-a-html-table,或者反序列化用对象绑定.net的grid控件——如果你用控件的话
补充:.NET技术 , C#