Where are you getting the JSON String from?
If you change the double quotes to single quotes it will convert to a
JSON Array, and you can get each object by using :
JSONObject jObj = JArray.getJSONObject(0);
JSONObject jObj = JArray.getJSONObject(1);
[{'id': 1, 'fields': {'Name': 'hello1', 'Age': '10' }}, {'id': 2,
'fields': {'Name': 'hello2', 'Age': '12'}}]
On 15/06/2010 11:47 PM, rahul jain wrote:
[{"id": 1, "fields": {"Name": "hello1", "Age": "10" }},
{"id": 2, "fields": {"Name": "hello2", "Age": "12"}}]
--
Sincerely,
Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://www.bgies.com
http://www.bistroblurb.com
http://www.bistrobot.com
-----------------------------------------------------------------------
Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en