- Delete a recursive tree, delete this attribute if there is an empty subList: [], and keep
// :
[
{
"paramId":500061,
"sourcePath":"Status",
"weight":100,
"subList":[
]
},
{
"paramId":500045,
"sourcePath":"Result",
"weight":100,
"subList":[
{
"paramId":500042,
"sourcePath":"Partners",
"weight":100,
"subList":[
{
"paramId":500043,
"sourcePath":"StockName",
"weight":100,
"subList":[
]
},
{
"paramId":500027,
"sourcePath":"ShoudDate",
"weight":100,
"subList":[
]
}
]
}
]
}
]
/ / output
[
{
"paramId":500061,
"sourcePath":"Status",
"weight":100,
},
{
"paramId":500045,
"sourcePath":"Result",
"weight":100,
"subList":[
{
"paramId":500042,
"sourcePath":"Partners",
"weight":100,
"subList":[
{
"paramId":500043,
"sourcePath":"StockName",
"weight":100,
},
{
"paramId":500027,
"sourcePath":"ShoudDate",
"weight":100,
}
]
}
]
}
]