I have the following object:
var abc = {
1: "Raggruppamento a 1",
2: "Raggruppamento a 2",
3: "Raggruppamento a 3",
4: "Raggruppamento a 4",
count: '3',
counter: {
count: '3',
},
5: {
test: "Raggruppamento a 1",
tester: {
name: "Georgi"
}
}
};
I would like to retrieve the following result:
- abc[1]
- abc[2]
- abc[3]
- abc[4]
- abc.count
- abc.counter.count
- abc[5]
- abc[5].test
- abc[5].tester
- abc[5].tester.name
is that possible using nodejs maybe with the help of plugins?