您可以这样获得数据值:
string json = @"[ { ""General"" : ""At this time we do not have any frequent support requests."" }, { ""Support"" : ""For support inquires, please see our support page."" }]";JArray a = JArray.Parse(json);foreach (JObject o in a.Children<JObject>()){ foreach (JProperty p in o.Properties()) { string name = p.Name; string value = (string)p.Value; Console.WriteLine(name + " -- " + value); }}
小提琴:https :
//dotnetfiddle.net/uox4Vt
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)