Is it possible to access the innermost object without knowing the path names?
Consider this JSON example:
const data = {
first: {
second: {
third: {innerObject}
}
}
}
Each level will only have one value, but there can be up to 5 levels of nesting.
Is there a way to always reach the inner object without using explicit paths like data.first.second.third?
Please note that the inner object will always have consistent keys.