Changed repr/literal_eval to json.dumps/loads