Making Nested JSON Javascript
问题 I am trying to make nested JSON for the sunburst diagram however I am having some trouble. As you can see in this fiddle below that the children that share a parent name are not being applied to everything? I want the No Virtual to have the same Attributes as the Virtual Parent. However because they are the same name I am running into a problem? Is there someway to check if the root of the tree are the same? And that way it can be different every time, however it is going to get more and more