I now have a string called str1 like this:
{u'price': 542.23, u'name': u'ACME', u'shares': 100}
and I want to transform it into a real JSON data.
the way that uses
data = json.loads(str1)
doesn't work. Do you have any good ideas? (with Python)
uprefix in your string? Did you do something like:str1 = repr(some_object)?Unicode-uevalon that string. It's not json.