输入:
"foldChildren": "false",
"branchColor": "#000000",
"children": [
{
"id": "3f67cbab-ff5a-4f61-b1ef-d551271e8af2",
"parentId": "211c838e-3e2d-4919-ab09-dd7f8a901b97",
"text": {
"caption": "f",
"font": {
"style": "normal",
"weight": "normal",
"decoration": "none",
"size": "15",
"color": "#000000"
}
},
"offset": {
"x": "30",
"y": "93"
},
"foldChildren": "false",
"branchColor": "#000000",
"children": {
"id": "2ecaecb6-d55c-4203-bace-f14e276700af",
"parentId": "3f67cbab-ff5a-4f61-b1ef-d551271e8af2",
"text": {
"caption": "x",
"font": {
"style": "normal",
"weight": "normal",
"decoration": "none",
"size": "15",
"color": "#000000"
}
},
"offset": {
"x": "122",
"y": "114"
},
"foldChildren": "false",
"branchColor": "#000000",
"children": ""
}
},
预期产出:
"foldChildren": "false",
"branchColor": "#000000",
"children": [
{
"id": "3f67cbab-ff5a-4f61-b1ef-d551271e8af2",
"parentId": "211c838e-3e2d-4919-ab09-dd7f8a901b97",
"text": {
"caption": "f",
"font": {
"style": "normal",
"weight": "normal",
"decoration": "none",
"size": "15",
"color": "#000000"
}
},
"offset": {
"x": "30",
"y": "93"
},
"foldChildren": "false",
"branchColor": "#000000",
"children": [{
"id": "2ecaecb6-d55c-4203-bace-f14e276700af",
"parentId": "3f67cbab-ff5a-4f61-b1ef-d551271e8af2",
"text": {
"caption": "x",
"font": {
"style": "normal",
"weight": "normal",
"decoration": "none",
"size": "15",
"color": "#000000"
}
},
"offset": {
"x": "122",
"y": "114"
},
"foldChildren": "false",
"branchColor": "#000000",
"children": []
}]
},