A service I'm using (SendBird), which I have no control over, is returning data (a string) in the form of:
"{u'some_key': u'some_value', u'some_other_key': u'some_other_value'}"
Some searching revealed that certain versions of Python will prefix strings with a 'u' character so I'm assuming that's what's happening here. However, when I do a standard:
Gson gson = new Gson();
SomeClass object = gson.fromJson(dataString, SomeClass.class);
where
dataString = "{u'some_key': u'some_value', u'some_other_key': u'some_other_value'}"
it doesn't properly map the values to my class (yes, I've double checked that the serialized names matches the java object properties). Does Gson not handle the 'u' prefix properly or is something else possibly going on here?