I have some deeply randomly nested dictionary as follows.
{'CompilationStatistics': {'CodeGeneration': {'EndTime': '2010-04-21T14:03:11', 'StartTime': '2010-04-21T14:03:11', 'StepList': {'EliminatingDuplicates': {'EndTime': '2010-04-21T14:03:11', 'NumberOfFilesEliminated': '14', 'StartTime': '2010-04-21T14:03:11'}, 'ModuleGenerator': {'EndTime': '2010-04-21T14:03:11', 'StartTime': '2010-04-21T14:03:11'}, 'Munger': {'EndTime': '2010-04-21T14:03:11', ...
How can I transform this into 1D dictionary as follows.
dict["CompilationStatistics_CodeGeneration_EndTime"] = '2010-04-21T14:03:11' dict["CompilationStatistics_CodeGeneration_StartTime"] = '2010-04-21T14:03:11' ... dict["CompilationStatistics_directory] = "/abc"