I'm getting some JSON from a website, and they apparently don't properly terminate their strings. It's causing this error:
Looks like the spaces in the string values are causing issues.
How can I properly parse that string into JSON, since I have no control over what I receive from the API?
(JSONException) org.json.JSONException: Unterminated object at character 31 of {symbol=CITY, name=Manchester City Fan Token, id=1489, tradingSymbol=CITY}
Looks like the spaces in the string values are causing issues.
{symbol=CITY, name=Manchester City Fan Token, id=1489, tradingSymbol=CITY}
How can I properly parse that string into JSON, since I have no control over what I receive from the API?