I am trying to initialize a JSONObject with the following line retrieved from a web service:
"{ "campaignid": "8", "campaignname": "Pilotarienak 2011", "campaignlink": "http:\\/\\/www.xxx.com\\/fr\\/cote-basque\\/agenda\\/2011-05-20\\/FMAAQU064FS016DV-pilotarienak-d-anglet?fromapp", "splash": "http:\\/\\/www.xxx.com\\/ads\\/customers\\/pilotarienak\\/320x480.jpg", "banner": "http:\\/\\/www.xxx.com\\/ads\\/customers\\/pilotarienak\\/320x160.jpg" }"
This seems to be the correct json (it is checked on jsonlint.com), but when initializing a JSONObject with this, I get:
org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
Can anybody help?
thanks
source share