Skip to content

Instantly share code, notes, and snippets.

@ryanguill
Created August 26, 2016 17:05
Show Gist options
  • Save ryanguill/8b49a12712d3748e597942fa885f127a to your computer and use it in GitHub Desktop.
Save ryanguill/8b49a12712d3748e597942fa885f127a to your computer and use it in GitHub Desktop.
untitled
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