如下json怎么解析?Newtonsoft.Json
如下json如何解析?Newtonsoft.Json{Children:[ {type:folder, addeddate:2013-11-01, Children
如下json如何解析?Newtonsoft.Json
{
"Children":
[
{"type":"folder",
"addeddate":"2013-11-01",
"Children":
[
{
"Children":[],
"type":"folder",
"addeddate":"2013-11-01"
},
{"type":"file",
"addeddate":"2013-11-01"
}
]},
{"type":"file",
"addeddate":"2013-11-01"}
],
"type":"folder",
"addeddate":"2013-11-01"
}
如何解析上面的json,folder和file是两个对象,但是children里的folder和file的顺序和数量都是随机不定的。并且这个json字符串很大,有很多层,即folder里的children包含folder...如此类推下去。比如想得到这个json的对象 json? c#解析Json? json解析
[解决办法]曾经写过一个类,专门应对你说的这种情况,拿去试试吧。类有点长,发不上来,联系我的邮箱吧。
Phoozyan@163.com