I'm trying to initialize a JSONObject with the following string, received 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"
}"
It seems to be valid json (it validates in jsonlint.com), but when initializing a JSONObject with that I get:
org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
Anybody can help?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…