Created
March 2, 2014 06:52
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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