如题,有没有这样的例子生成如下格式:
[{
"task":aa","duration":"bb","cls":null,
"uiProvider":"col",
"icon":null,
"id":"C0_634040053680000000",
"IsChecked":false,
"IsRoot":false,
"leaf":false,
"ParentNodeId":"0",
"PID":"0",
"TypeCName":null,
"children":
[{
"task":"aa",
"duration":"bb",
"cls":null,
"uiProvider":"col",
"icon":null,
"id":"C0_634040053942656250",
"IsChecked":false,
"IsRoot":false,
"leaf":true,
"ParentNodeId":"C0_634040053680000000",
"PID":"C0_634040053680000000",
"TypeCName":null
}]
}]
主要是如果读取数据库生成树
json = JsonConvert.SerializeObject(extTreeNodeList);
求这样的例子。
------解决方案--------------------------------------------------------
问一下 你的那个json的问题解决了吗http://topic.csdn.net/u/20100611/14/64674cea-bb9a-4d9d-a57b-a2e9dccba047