i have this kind of object:
lb = b'[5, "WEB9999", "Test 2", true]'
I try to convert it to a regular string for extract single values using:
ls = list(lb)
or
ls = list(str(lb))
but the results split every string in single chars
['b', "'", '[', '5', ',', ' ', '"', 'W', 'E', 'B', '9', '9', '9', '9', '"', ',', ' ', '"', 'T', 'e', 's', 't', ' ', '2', '"', ',', ' ', 't', 'r', 'u', 'e', ']', "'"]
How can I simply convert my bytes object in a python regular list for retrieving single value using mylist[3]
?
Thanks in advance