|
|
|
@ -20,7 +20,6 @@ public class YunXiao {
|
|
|
|
|
public static void traverseTree(JSONArray treeArray) {
|
|
|
|
|
for (Object item : treeArray) {
|
|
|
|
|
JSONObject node = (JSONObject) item;
|
|
|
|
|
|
|
|
|
|
JSONObject jsonObj = new JSONObject();
|
|
|
|
|
jsonObj.put("nodeId", node.getString("key"));
|
|
|
|
|
jsonObj.put("nodeName", node.getString("title"));
|
|
|
|
@ -34,7 +33,6 @@ public class YunXiao {
|
|
|
|
|
traverseTree(children);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|