Having the object :
Nested1: {
"nested21": {
"nested31": {
value: "im sooo nested"
} ,
"nested32": {
value: "im sooo nested"
}
},
"nested22": {
"nested31": {
value: "im sooo nested"
} ,
"nested32": {
value: "im sooo nested"
}
}
}
Where there can be an undefined number of nested objects, i'd like to get something like:
Nested1.nested21.nested31 - im sooo nested Nested1.nested21.nested32 - im sooo nested
And so on
I'm thinking of a recursive function but how to keep in memory the chained keys ?