急!java 如何解析两层中括号[[]] 的json格式文件.
test.json文件数据如下,第一层是父节点,第二层是子节点children
[ { "EndDate" : "2010-02-02",
"BaselineEndDate" : "2010-02-01",
"Id" : 1,
"Name" : "计划",
"PercentDone" : 40,
"Priority" : 1,
"Responsible" : "",
"StartDate" : "2010-01-18",
"BaselineStartDate" : "2010-01-13",
"expanded" : true,
"children" : [
{
"EndDate" : "2010-01-28",
"BaselineEndDate" : "2010-01-28",
"Id" : 11,
"leaf" : true,
"Name" : "调研",
"ParentId" : 1,
"PercentDone" : 30,
"Priority" : 1,
"Responsible" : "",
"StartDate" : "2010-01-18",
"BaselineStartDate" : "2010-01-20"
},
{
"EndDate" : "2010-02-02",
"BaselineEndDate" : "2010-02-01",
"Id" : 12,
"leaf" : true,
"Name" : "分配资源",
"PercentDone" : 0,
"Priority" : 0,
"Responsible" : "",
"StartDate" : "2010-01-28",
"BaselineStartDate" : "2010-01-25"
},
{
"EndDate" : "2010-02-02",
"BaselineEndDate" : "2010-02-01",
"Id" : 13,
"leaf" : true,
"Name" : "收集文档",
"PercentDone" : 40,
"Priority" : 1,
"Responsible" : "",
"StartDate" : "2010-01-25",
"BaselineStartDate" : "2010-01-25"
},
{
"EndDate" : "2010-02-02",
"BaselineEndDate" : "2010-02-04",
"Id" : 17,
"leaf" : true,
"Name" : "汇报给领导",
"PercentDone" : 0,
"Priority" : 0,
"Responsible" : "",
"StartDate" : "2010-02-02",
"BaselineStartDate" : "2010-02-04"
}
]
},
{
"EndDate" : "2010-03-20",
"BaselineEndDate" : "2010-03-15",
"Id" : 4,
"Name" : "实施阶段1",
"PercentDone" : 50,
"Priority" : 1,
"Responsible" : "",
"StartDate" : "2010-01-25",
"BaselineStartDate" : "2010-01-23",
"expanded" : true,
"children" : [{
"EndDate" : "2010-01-30",
"BaselineEndDate" : "2010-01-25",
"Id" : 34,
"leaf" : true,
"Name" : "准备工作",
"PercentDone" : 0,
"Priority" : 0,
"Responsible" : "",
"StartDate" : "2010-01-25",
"BaselineStartDate" : "2010-01-20"
},
{
"EndDate" : "2010-03-07",
"BaselineEndDate" : "2010-03-07",
"Id" : 14,
"leaf" : true,
"Name" : "芯片评估",
"PercentDone" : 30,
"Priority" : 0,
"Responsible" : "",