[android-developers] parsing json data in android

2011-05-25 Thread Expressions Unlimitted
I am facing problem with parsing json data. Here is my json *json string : {final:[{id:1,value:14,name:Mohammad Arif}]}* * * and here is android code : *String jsonstring=jsonstring;* // the above json string *jobject=new JSONObject(jsonstring);* *JSONObject

Re: [android-developers] parsing json data in android

2011-05-25 Thread Mark Murphy
The error message is correct. final is not a JSONObject. It is a JSONArray. You can tell that by the square brackets, instead of braces. On Wed, May 25, 2011 at 1:57 PM, Expressions Unlimitted expressions.j...@gmail.com wrote: I am facing problem with parsing json data. Here is my json json

Re: [android-developers] parsing json data in android

2011-05-25 Thread Nandagopal T
Yeah, mark is right. Its a JSONArray. On Wed, May 25, 2011 at 11:48 PM, Mark Murphy mmur...@commonsware.comwrote: The error message is correct. final is not a JSONObject. It is a JSONArray. You can tell that by the square brackets, instead of braces. On Wed, May 25, 2011 at 1:57 PM,