Why are you converting to a dict? If we pass a dict to json.dumps, json.loads should return a dict.