I am having tree structure as same below
var tree = [ { text: "Parent 1", nodes: [ { text: "Child 1", type: &q