import json var = ["[{'Gfg' : 3, 'Best' : 8}, {'Gfg' : 4, 'Best' : 9}]"] new_var = [json.loads(idx.replace("'", "'")) for idx in test_str]