Created
January 18, 2015 03:16
-
-
Save una/7e33093d51ed2d037433 to your computer and use it in GitHub Desktop.
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
var obj = { | |
values: null, | |
children: { | |
childA: { | |
values: [A,B], | |
children: { | |
subA: { | |
values: [C], | |
children: null | |
} | |
} | |
}, | |
childB : { | |
values: null; | |
children: { | |
subB: { | |
values: null, | |
children: { | |
subC: { | |
values: [C], | |
children: null | |
} | |
} | |
} | |
} | |
} | |
} |
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
"childA/A.txt" | |
"childA/B.txt" | |
"childA/subA/C.txt" | |
"childB/subB/subC/hello.txt" | |
//The .txt ending signals that it is a value, not a child of the parent |
drinks
commented
Jan 18, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment