I have been trying to write a function that would return an another in line property key.
Lets say we have this JSON:
'Test123': {
'Another Test': {},
'Test some more': {
'Still testing?': {
'Yeah...': {}
},
'Never ending story': {}
}
},
For example, if we pass 'Still testing?' key into the function it should return 'Yeah...', but if we pass 'Yeah...' it should return 'Never ending story'. Doest someone knows who to do it? I have been trying to write a function doing that but my brain doesn't support it...
Yeah...has a property calledNever ending story? Do you want the property name of property value?{ "A": {}, "C": {}, "B": {} }and you pass in the key "A" would you expect to get back C? or B? Or does it not matter?