[英]how to make JSON file in below tree format?
how to make JSON file in below tree format?如何以下面的树格式制作JSON文件?
root child1 child11 child2 child21 child22 child3 child31
i want create one sample JSON file which needs to be in above tree format.我想创建一个需要采用上述树格式的示例 JSON 文件。
Something like就像是
{
"child1": ["child11"],
"child2": ["child21","child22"],
"child3": ["child31"]
}
depending on the data that the child elements hold, are they objects or are they arrays?根据子元素持有的数据,它们是对象还是数组?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.