Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- JSONObject categories = new JSONObject(json);
- JSONObject category = categories.getJSONObject("nodes");
- Iterator<?> keys = category.keys();
- while (keys.hasNext()) {
- String key = (String) keys.next();
- JSONObject cate = category.getJSONObject(key);
- String title = cate.getString("title");
- Log.d("title", title);
- }
- } catch (JSONException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment