For the file business.json, there are records (for example the 4th record) where for example the key hours exists but its value is None. This causes an exception in the function get_nested_value.
To fix it, I suggest to add the following to that function before the last line (return get_nested_value(sub_dict, sub_key)):
if sub_dict is None:
return None
For the file business.json, there are records (for example the 4th record) where for example the key
hoursexists but its value is None. This causes an exception in the functionget_nested_value.To fix it, I suggest to add the following to that function before the last line (return get_nested_value(sub_dict, sub_key)):
if sub_dict is None:
return None