文件名称:tree:根据java的引用特性获取树形json,避免使用遍历算法
文件大小:4KB
文件格式:ZIP
更新时间:2024-05-30 08:25:08
Java
tree 根据java的引用特性获取树形json,避免使用递归算法 原始数据: {"id":1,"name":"树节点1","pId":0} {"id":2,"name":"树节点2","pId":1} {"id":3,"name":"树节点3","pId":1} {"id":4,"name":"树节点4","pId":2} {"id":5,"name":"树节点5","pId":2} {"id":6,"name":"树节点6","pId":4} {"id":7,"name":"树节点7","pId":5} {"id":8,"name":"树节点8","pId":5} 转换的树形数据 { "child": [{ "child": [{ "child": [{ "child": [{ "child": [], "id": 6, "name":
【文件预览】:
tree-master
----src()
--------main()
----pom.xml(1KB)
----README.md(1KB)