I've been working on a function to retrieve another property key from within the same object.
Consider this example JSON:
'Test123': {
'Another Test': {},
'Test some more': {
'Still testing?': {
'Yeah...': {}
},
'Never ending story': {}
}
},
For instance, if we input the key 'Still testing?' into the function, it should return 'Yeah...', but if we input 'Yeah...', it should return 'Never ending story'. Does anyone know how to achieve this? I've been attempting to write such a function, but my brain just isn't cooperating...