fix dictionaries in json