📜  什么是 JSON 树 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:39.611000             🧑  作者: Mango

代码示例1
{"status": true,"categories": [{"id": 106,"slug": "products","name": "Products","children": [{"id": 95,"slug": "home","name": "Home","children": [],"category_icon_path": "category/icons/XjDLL4HyxSOYwgZWKW2W1FDb7pY2G6nc32Ij20qN.png"},{"id": 96,"slug": "electronics","name": "Electronics ","children": [],"category_icon_path": "category/icons/3IeSKX3HDLeyZvvjALDokTRSzP2qaGCjOdEKdKmK.png"},{"id": 93,"slug": "fragrances","name": "Fragrances","children": [{"id": 102,"slug": "women-perfumes","name": "Women perfumes ","children": [],"category_icon_path": "category/icons/6hKKxFSuXQqwvSpWGKKWcWOzGlx81HegaPEGlqjI.png"},{"id": 101,"slug": "men-perfumes","name": "Men perfumes  ","children": [],"category_icon_path": "category/icons/zf52pmngFJmt7VerWvEzUavFsPNWChTKSdXgBreZ.png"}],"category_icon_path": "category/icons/cWMZxsnPo8EAEew1Gxvayfr4nHGYQhdbVETYVFvQ.png"}],"category_icon_path": "category/icons/nay2xcsPPBy1wYJCN6CON7PPKDBCUN62zWo58kY0.png"},{"id": 94,"slug": "services","name": "Services ","children": [],"category_icon_path": "category/icons/kbGaPr1Dg2WHy9S1ln7ldrOjKgKAIAmUTwQiLpya.png"5 items}]}