[android-developers] Re: Error Parsing JSON data

2010-10-25 Thread Capt Spaghetti
RESOLVED ISSUE. It turns out my variable jnow was not initialized correctly. Thanks for all those who helped rattle my grey matter. = On Oct 25, 12:51 am, Capt Spaghetti gene_august...@msn.com wrote: I appreciate your assitance. I removed the

[android-developers] Re: Error Parsing JSON data

2010-10-24 Thread Capt Spaghetti
I appreciate your assitance. I removed the System.out.println(jnow); statement from my program and I modified the server side php to eliminate the first line and then I stepped through the program and followed the Variables. When it grabs the data it is only grabbing the data I need with

Re: [android-developers] Re: Error Parsing JSON data

2010-10-23 Thread Frank Weiss
I was trying to get you to use the very nice Java debugger that comes with Eclipse to see what's going on inside your code instead of System.out.println(jnow); You could then simply inpect the value of the jnow variable in the debugger. Another tip is to set jnow to the string value you are

[android-developers] Re: Error Parsing JSON data

2010-10-22 Thread Capt Spaghetti
I was unable to get the code you suggested (json_encode($topLevelArray, JSON_FORCE_OBJECT); ) to operate without error. I am using a php file and MySQL SELECT statements on my site to present a series of organizations which can be further reduced to a single organization. I am trying to bring back

[android-developers] Re: Error Parsing JSON data

2010-10-12 Thread Capt Spaghetti
I removed html from the php file as suggested by Kostya Vasilyev and changed the approach to retrieve the information. The new Android code is as follows: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Re: [android-developers] Re: Error Parsing JSON data

2010-10-12 Thread Brad Gies
You should be able to get rid of the HTML, but it's tough to give you advice when we don't know the web server setup. If it's causing too many problems to get rid of the HTML, you can always do other things. I had the same problem on one of my sites, and to get the website admin to do

Re: [android-developers] Re: Error Parsing JSON data

2010-10-12 Thread Frank Weiss
First thing I'd do is run the Android code with the debugger, breakpoint just before the JSON code and inspect the result string. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to