Get Branch JSON

Helly guys, if i have a tree with some data and i want to add a bruch that have some childs? how can i do it?
Thanks

You can use add API

In case of tree you can use third parameter as parent id

//add parent item
tree.add({ id:"a1", value:"Parent"}, 0, 0);
//add child item
tree.add({ id:"c1", value:"Parent"}, 0, "a1"); //a1 - id of parent

Thanks :slight_smile: