str()
turns data into strings but is it possible to undo this with a built in function?
exe:
str1 = '{"a": 1, "b": 2}'
is there a function that can turn this into a dictionary? if not what can I do?
I tried:
dict1 = dict(str1)
but I only just found out that it's not the way to do it