我有一个如下所示的 JSON 数据。
{
"divisions": [{
"name": "division1",
"id": "div1",
"subdivisions": [{
"name": "Sub1Div1",
"id": "div1sub1",
"schemes": [{
"name": "Scheme1",
"id": "scheme1"
}, {
"name": "Scheme2",
"id": "scheme2"
}]
}, {
"name": "Sub2Div1",
"id": "div1sub2",
"schemes": [{
"name": "Scheme3",
"id": "scheme3"
}]
}
]
}]
}
我想将其读入 TreeStore,但不能将子字段(、、、divisions
)subdivisions
更改schemes
为相同(例如,children
)。
我怎么能做到这一点?