待转换的json数据格式为:
[{
"id":1,
"text":"菜单",
"children":[{
"id":11,
"text":"菜单1",
"state":"closed",
"children":[{
"id":111,
"text":"测试11",
"attributes":{
"key":"Custom Attribute1" }
},{
"id":112,
"text":"测试12",
"attributes":{
"key":"xx"
},
},{
"id":113,
"text":"测试13",
"attributes":{
"key":"Custom Attribute1" }
}]
},{
"id":12,
"text":"菜单2",
"children":[{
"id":121,
"text":"测试21",
"attributes":{
"key":"Custom Attribute1" }
…… …… 余下全文