标签:ext file from each nod info text tle object
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"];
}
}
标签:ext file from each nod info text tle object
原文地址:https://www.cnblogs.com/wdd812674802/p/12198299.html