I've some difficulties to parse a unicode JSON string.
sample:
js = "{'to': 1234, 'message': u'sample message', 'user': 65773722, 'msgId': 28198}"
I want to iterate the JSON object to retrieve the values.
I've already tried, json.dumps, json.loads and js.decode('unicode-escape'), but I keep getting error messages.
Please help..I'm stuck !
Many thanks !
jsis not a unicode string, but a bytestring that happens to contain a unicode literal. It is not clear whether you are trying to construct a valid json string, or whether you are trying to parse a string that someone else gave you (that only pretends to be valid json).