I have the a json file whose contents is {\"67790\": {\"1\": {\"kwh\": 319.4}}}. Now I create a dictionary a_dict which I need to append it into th
{\"67790\": {\"1\": {\"kwh\": 319.4}}}
a_dict
You need to update the output of json.load with a_dict and then dump the result. And you cannot append to the file but you need to overwrite it.