I have a list of dictionaries, looking some thing like this:
list = [{\'id\': 123, \'data\': \'qwerty\', \'indices\': [1,10]}, {\'id\': 345, \'data\': \'mnbv
response_json = ("{ \"response_json\":" + str(list_of_dict)+ "}").replace("\'","\"") response_json = json.dumps(response_json) response_json = json.loads(response_json)