1.str to dictionary
method 1
a = '{"a":"1", "b":"1"}' b = evel(a)
Method 2
import json a = '{"a":"1", "b":"1"}' c=json.loads(a)
2. Convert dictionary to str
You can use str() directly to convert
b=str(c)