For example: var nodes = [ {name: "pNode 01", children: [ {name: "child 01"}, {name: "child 02"} ]} ];