Convert string to JSON in python

Convert string to JSON in python

Convert the string '{x:=1, y=2, z=3}' to a Python object #python #json stackoverflow.com/questions/74398724/convert-string-like-x-1-y-2-z-3-to-json-in-python