当我尝试从服务器加载json数据时,我的凌空抛出错误。 它总是进入错误侦听器。 我不知道如何处理它。 这是我的json数据:
{
EventResult: {
Events: [
{
Event: {
eventid: "123",
eventname: "Hello Event12",
lattitude: "41.871940",
longitude: "12.496366",
desc: "Welcome",
address: "Italy",
city: "pune",
province: "Italy",
eventimage: "20160429060807butterfly_14.png",
attendees: "20",
isdeleted: "0",
startdate: "2017-04-22",
starttime: "09:50:00",
enddate: "0000-00-00",
endtime: "00:00:00",
eventtype: "everyday",
eventfee: "200",
category: "Architecture & Designing",
subscribestatus: "-1",
catid: "1",
isprivate: "0",
dayofweek: "",
userid: "2",
email: "ela.probity@gmail.com",
nickname: "ela",
dob: "2016-09-13",
userphoto: "20160429053842userimage.jpeg",
statusmessage: "Rdfvfvb drcvh dchgv fvhh dvhjj dbhj dvbhgb dvhdc rvhhfv. Ccg chb. Drsxgerg sdxgg stccf hrc.",
cellular: "1234567890",
kilometers: "51",
gender: "F",
emailprivacysetting: "0",
dobprivacysetting: "1",
cellularprivacysetting: "1",
cityprivacysetting: "0",
userblockstatus: "0",
myblockstatus: "1",
followstatus: "1",
Participants: [ ],
Comments: [ ]
}
}
],
TotalItem: 1,
TotalPages: 1,
Status: "OK",
Message: "Successfull"
}
}
ErrorListner抛出此错误:
"值java.lang.String类型的值无法转换为JSONObject"
我在在线可用解析器上解析了json,它显示了json数据的完美。 我已经解决了很多问题而且它只显示了,#34; java.lang.String类型的值无法转换为JSONObject"。