Change eval function to json.loads