Switches from eval to json.loads when parsing string representations of dictionaries to prevent arbitrary code execution.