使用JSON.net我有这样的JSON格式:反序列化JSON在WP7应用
string jsonFormat = @"{
""Applications"": {
""data"": {
""Application named one"": [
{
""index"" : ""1"",
""name"" : ""One"",
""active"" : ""1"",
""excluded"" : ""false""
}
],
""Application named two"": [
{
""index"" : ""2"",
""forum"" : ""yes"",
}
]
}
}
}";
究竟如何,我可以存取权限data
儿童?我需要中检索Application named one
和Application named two
- 每个也与他们的价值观属性 - 属性是根据应用的不同。
,直到我现在有:
JObject resultt= JObject.Parse(jsonFormat);
// get JSON result objects into a list
IList<JToken> results = resultt["Applications"]["data"].Children().ToList();
我看着JSON.net文件,无法找到一个解决方案...
任何帮助将是非常有用的。谢谢。
我不能让工作... – Paul