like z-tree or jquery easyui support plain format
{{id:1,parentId:null,title:“root”},
{id:2,parentId:1,title:“sub1”},
{id:3,parentId:1,title:“sub2”},
{id:3,parentId:3,title:“sub3”}}
Could be used to generate tree or treegrid directly ,it execute Recursion in js plugin but not in JAVA