Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "sec": "11",
- "details": [
- {
- "id": "1",
- "user": "Me1"
- },
- {
- "id": "2",
- "uesr": "Me2"
- },
- {
- "id": "3",
- "user": "Me3"
- }
- {
- "id": "4",
- "user": "Me4",
- parentID:"2"
- },
- {
- "id": "5",
- "uesr": "Me5"
- },
- {
- "id": "6",
- "user": "Me6",
- parentID:"2"
- }
- {
- "id": "7",
- "user": "Me7"
- },
- {
- "id": "8",
- "uesr": "Me8",
- parentID:"7"
- },
- {
- "id": "9",
- "user": "Me9",
- parentID:"7"
- }
- ],
- "isDisplay": "true"
- }
- {
- "sec":"11",
- "details":[
- {
- "id":"1",
- "user":"Me1"
- },
- {
- "id":"2",
- "uesr":"Me2",
- "childs":[
- {
- "id":"4",
- "user":"Me4",
- "parentID":"2"
- },
- {
- "id":"6",
- "user":"Me6",
- "parentID":"2"
- }
- ]
- },
- {
- "id":"3",
- "user":"Me3"
- },
- {
- "id":"5",
- "uesr":"Me5"
- },
- {
- "id":"7",
- "user":"Me7",
- "childs":[
- {
- "id":"8",
- "uesr":"Me8",
- "parentID":"7"
- },
- {
- "id":"9",
- "user":"Me9",
- "parentID":"7"
- }
- ]
- }
- ],
- "isDisplay":"true"
- }
- this.list = _.groupBy(this.list,"parentID");
Add Comment
Please, Sign In to add comment