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 object=jobject.getJSONObject("final");*
*        *
*        String name=object.getString("id");*
*        txt.setText(name);*

------------------------------------------------------

But i get the following error :

JSONException --> [final] is not json object
///////////////////////////////////////////////////////////////////////

Actually i want to get data such as id, name and value etc


---------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to