Skip to content

Instantly share code, notes, and snippets.

@aeschylus
Created March 2, 2014 06:52
Show Gist options
  • Save aeschylus/9302910 to your computer and use it in GitHub Desktop.
Save aeschylus/9302910 to your computer and use it in GitHub Desktop.
Sample Tree Data - The important aspect here is that the children objects be stored as elements in an array under a "children" key in the nested structure.
{
"name": "MyClass",
"children": [{
"name": "1",
"children": [{
"name": "1",
"children": [{
"name": "7"
}, {
"name": "8"
}, {
"name": "9"
}]
}, {
"name": "2",
"children": [{
"name": "7"
}, {
"name": "8"
}, {
"name": "9"
}]
}, {
"name": "3"
}]
}, {
"name": "2",
"children": [{
"name": "2",
"children": [{
"name": "2",
"children": [{
"name": "4"
}, {
"name": "5"
}, {
"name": "6"
}]
}, {
"name": "5"
}, {
"name": "6"
}]
}, {
"name": "5"
}, {
"name": "6"
}]
}, {
"name": "3",
"children": [{
"name": "7"
}, {
"name": "8"
}, {
"name": "9"
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment