system.kanoa.utilities.getDictionaryValue(data, key)
Recursively searches for a key within a nested dictionary.
Parameters
data Dictionary: The dictionary to search.
key String: The key to find.
Returns
returnedKey object The value associated with the key if found, otherwise None.
Example
data = {
'dict1': {
'key1': 4,
'key2': 9,
'key3': 14
},
'key4': 19
}
val = system.kanoa.utilities.getDictionaryValue(data, 'key3')
>>>
14