[{'tzid': '000000', 'phone': '000000', 'service': 'test', 'status': 'TZ_NUM_PREPARE'}]
test = "[{'tzid': '000000000', 'phone': '000000', 'service': 'test', 'status': 'TZ_NUM_PREPARE'}]"
print(json.loads(test)
TypeError: the JSON object must be str, bytes or bytearray, not list
>>> test = "[{'tzid': '000000000', 'phone': '000000', 'service': 'test', 'status': 'TZ_NUM_PREPARE'}]"
>>> import json
>>> print(json.loads(test.replace("'", '"')))
[{'tzid': '000000000', 'phone': '000000', 'service': 'test', 'status': 'TZ_NUM_PREPARE'}]
>>> print(json.loads(test.replace("'", '"'))[0]['tzid'])
000000000
In [6]: x = '[{"tzid": "000000000", "phone": "000000", "service": "test", "statu
...: s": "TZ_NUM_PREPARE"}]'
In [7]: x
Out[7]: '[{"tzid": "000000000", "phone": "000000", "service": "test", "status": "TZ_NUM_PREPARE"}]'
In [8]: json.loads(x)
Out[8]:
[{'tzid': '000000000',
'phone': '000000',
'service': 'test',
'status': 'TZ_NUM_PREPARE'}]