[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-12-07 Thread Akhil
Hi , I am facing the same issue, let me know the fix for this without using BasicResponseHandler Thanks On Nov 16, 1:44 am, "Jonas Petersson" wrote: > Mark Murphy wrote: > >> Mark, I may have found the problem, but not sure how I can fix it. The > >> log msg for the responseBody is below. Shoul

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Jonas Petersson
Mark Murphy wrote: >> Mark, I may have found the problem, but not sure how I can fix it. The >> log msg for the responseBody is below. Should it be the UTF_8 param? >> thanks >> {"hey": "guy","anumber": 243,"anobject": {"whoa": >> "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": >>

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
> Mark, I may have found the problem, but not sure how I can fix it. The > log msg for the responseBody is below. Should it be the UTF_8 param? > thanks > {"hey": "guy","anumber": 243,"anobject": {"whoa": > "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": > true,"bogus": false,"mea

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, I may have found the problem, but not sure how I can fix it. The log msg for the responseBody is below. Should it be the UTF_8 param? thanks {"hey": "guy","anumber": 243,"anobject": {"whoa": "nuts","anarray": [1,2,"three"], "more":"stuff"},"awesome": true,"bogus": false,"meaning": null,

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, Thanks for the link, a lot of good examples. I try to use BasicResponseHandler but I am still getting the same error. Could it be something with Eclipse? org.json.JSONException: A JSONObject text must begin with '{' at character 1 DefaultHttpClient client=null; HttpClient httpclient = new De

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
TJ wrote: > Mark, thanks for the help But, I an also getting the same error msg > when I try pulling the JSON file from twitter.com. > thanks for the help. > > String url = "http://twitter.com/statuses/user_timeline.json? > screen_name=huskyr"; > HttpClient httpclient = new DefaultHttpClient(); >

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread TJ
Mark, thanks for the help But, I an also getting the same error msg when I try pulling the JSON file from twitter.com. thanks for the help. String url = "http://twitter.com/statuses/user_timeline.json? screen_name=huskyr"; HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new Http

[android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread nEx.Software
First, as Mark said, you have an extra curly bracket. You also have switched the ending square bracket with the ending curly bracket. The error might be indicating you are trying to access "Result" as a JSONObject, as opposed to the JSONArray that it is. Or it is a side effect of the mal-formed JSO