日期:2014-05-17  浏览次数:20862 次

Json怎么解析下面的数据?

{
    "details": [
        {
            "A": [
                [
                    "老王",
                    "60岁"
                ],
                [
                    "老李",
                    "72岁"
                ]
            ],
            "DataTime": 1389542400000,
            "B": [
                0,
                289277,
                61086
            ],
            "C": [
                26567,
                27263
            ],
            "D": false
        },
        
    ]
}

以上数据怎么解析出来老王和老李的数据?

------解决方案--------------------

using Newtonsoft.Json;
 string jj="{\"details\": [{\"A\": [[\"老王\",\"60岁\"],[\"老李\",\"72岁\"]],\"DataTime\": 1389542400000,\"B\": [0,289277,61086],\"C\": [26567,27263],\"D\": false},]}";
  string js = GetJsonContent(jj);
  JArray jsonval = JArray.Parse(js) as JArray;
            dynamic al