there is a dictionary in which key is a tuple.
{('Feb', 'File1', '100'): {'1': 78, '2': 408, '3': 202, '4': 39},
('Feb', 'File1', '101'): {'1': 201, '2': 101, '3': 529, '4': 103},
('May', 'File1', '100'): {'1': 78, '2': 402, '3': 20, '4': 39}}
Based on month i need to convert to a nested dict format
how to convert the above dict into this format
{
"Feb": {
"File1": {
"100": {
"1": 78,
"2": 408,
"3": 202,
"4": 39
},
"101": {
"1": 201,
"2": 101,
"3": 529,
"4": 103
}}},
"May": {
"File1": {
"100": {
"1": 78,
"2": 402,
"3": 20,
"157": 39
}}}
}