[
{
"lev1": "ELECTRONICS",
"lev2": "PORTABLE ELECTRONICS",
"lev3": "MP3 PLAYERS",
"lev4": "FLASH"
},
{
"lev1": "ELECTRONICS",
"lev2": "TELEVISIONS",
"lev3": "TUBE",
"lev4": null
},
{
"lev1": "ELECTRONICS",
"lev2": "TELEVISIONS",
"lev3": "LCD",
"lev4": null
},
{
"lev1": "ELECTRONICS",
"lev2": "TELEVISIONS",
"lev3": "PLASMA",
"lev4": null
},
{
"lev1": "ELECTRONICS",
"lev2": "PORTABLE ELECTRONICS",
"lev3": "CD PLAYERS",
"lev4": null
},
{
"lev1": "ELECTRONICS",
"lev2": "PORTABLE ELECTRONICS",
"lev3": "2 WAY RADIOS",
"lev4": null
}
]
我有上面的json,我想从中创建分层树。
怎么做?