org.json.JSONException: A JSONObject text must begin with '{

Tutorials with advanced 'difficulty' and more Lines of Code.

org.json.JSONException: A JSONObject text must begin with '{

Postby mcdevitt » Sun Nov 15, 2009 8:53 am

I'm having a weird error, seems to be cause whenever I hit JSONObject json=new JSONObject(result);.
The error msg is org.json.JSONException: A JSONObject text must begin with '{. I have no idea how to fix this is any one have any idea PLEASE LET ME KNOW. The JSON File is

thanks

The JSON File is
{"ResultSet":{
"totalResultsAvailable":"3",
"totalResultsReturned":"2",
"firstResultPosition":"1",
"Result":[
{
"Title":"madonna 116",
"Summary":"Picture 116 of 184",
"Url":"http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/madonna\/madonna-116.jpg",
}
},
{
"Title":"madonna 118",
"Summary":"Picture 118 of 184",
"Url":"http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/madonna\/madonna-118.jpg",
}
}
]
}
}
mcdevitt
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Nov 15, 2009 8:38 am

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 7 guests