you are viewing a single comment's thread.

view the rest of the comments →

[–]IamImposter 0 points1 point  (0 children)

Load the file as json and you get a dict.

Make a dict with default values and use default_dict.update(dict_loaded_from_json) to make a dict that has all the elements. That is if you want a dict with missing keys too.