This Gist was automatically created by Carbide, a free online programming environment.
Created
August 26, 2016 17:05
-
-
Save ryanguill/8b49a12712d3748e597942fa885f127a to your computer and use it in GitHub Desktop.
untitled
This file contains hidden or 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 testData = [ | |
{id:1, nodeText:"File" } | |
,{id:2, nodeText:"New", parentId:1} | |
,{id:3, nodeText:"File", parentId:2} | |
,{id:4, nodeText:"Folder", parentId:2} | |
,{id:5, nodeText:"Edit" } | |
,{id:6, nodeText:"Copy", parentId:5} | |
,{id:7, nodeText:"Cut", parentId:5} | |
,{id:8, nodeText:"Paste", parentId:5} | |
,{id:9, nodeText:"Help" } | |
,{id:10, nodeText:"About", parentId:9} | |
]; | |
JSON.stringify(testData, null, 2); | |
testData.length; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment