how to make JSON file in below tree format?
root child1 child11 child2 child21 child22 child3 child31
i want create one sample JSON file which needs to be in above tree format.
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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.