@JFinal String strSql = " select * from _tree"; List ls = Db.find(strSql); List mls = new ArrayList(); for (int i = 0; i < ls.size(); i++) { TreeNode m = new TreeNode(); mls.add(m.put(ls.get(i))); } TreeBuilder tree = new TreeBuilder(); renderJson(tree.buildListToTree(mls));