指定json格式
[
{
"id": "1",
"nodeid": "1",
"title": "",
"parentid": "0",
"projectId": "1",
"resourcepath": null,
"order": "1",
"path": "0",
"children": [
{
"id": "6",
"nodeid": "2",
"title": "",
"parentid": "1",
"projectId": "1",
"resourcepath": null,
"order": "6",
"path": "1",
"children": null
}
]
},
{
"id": "2",
"nodeid": "1",
"title": "",
"parentid": "0",
"projectId": "1",
"resourcepath": null,
"order": "2",
"path": "0",
"children": [
{
"id": "7",
"nodeid": "2",
"title": "",
"parentid": "2",
"projectId": "1",
"resourcepath": null,
"order": "7",
"path": "2",
"children": null
},
{
"id": "8",
"nodeid": "2",
"title": "",
"parentid": "2",
"projectId": "1",
"resourcepath": null,
"order": "8",
"path": "2",
"children": null
},
{
"id": "9",
"nodeid": "2",
"title": "",
"parentid": "2",
"projectId": "1",
"resourcepath": null,
"order": "9",
"path": "2",
"children": null
},
{
"id": "10",
"nodeid": "2",
"title": "",
"parentid": "2",
"projectId": "1",
"resourcepath": null,
"order": "10",
"path": "2",
"children": null
},
{
java拼接json
最新推荐文章于 2023-10-11 18:14:58 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)