.net 对json数据进行读取
TextReader file = new StringReader(info);
using (JsonTextReader reader = new JsonTextReader(file))
{
JObject json = (JObject)JToken.ReadFrom(reader);
JToken data = json["data"];
//遍历data中所有的课程,取details节点
foreach (JObject node in data)
{
//JObject details = (JObject)node["subject"];
//var deviceID = details["id"];
//var title = details["title"];
//var thumb = details["thumb"];
//var xiangqing=details["xiangqing"];
text += "标题:"+node["subject"] + "<br>" +"公告ID:"+node["notifyId"];
}
}