Is there a native function to flatten a nested dictionary to an output dictionary where keys and values are in this format:
_dict2 = {
'this.is.an.example': 2,
'this.is.another.value': 4,
'this.example.too': 3,
'example': 'fish'
}
Assuming the dictionary will have several different value types, how should I go about iterating the dictionary?