My following json data:
{ "Alex": { "id": "54e23a2331ac67b1490d87b8", "desc": "bla bla", "no": 2 }, "Kodie": { "id": "54e23a2331ac67b1490d87b9", "desc": "bla bla", "no": 13 }, "Lache": { "id": "54e23a2331ac67b1490d87af", "desc": "bla bla", "no": 89 } } How should the following code in the android system?
JSONObject object = new JSONObject(data); for (int i = 0; i < object.length(); i++) { //desc = object.getString("desc"); } Sorry I could tell you so much for my english is very bad.