public void parseJSON(JSONObject json) throws JSONException { if (json != null) { title = json.getString("title"); JSONArray array = json.optJSONArray("list"); if (array != null) { int len = array.length(); if (len > 0) { list = new LinkedList<Sprint>(); for (int i = 0; i < len; i++) { JSONObject jsonObject = array.getJSONObject(i); Sprint sp = new Sprint(); sp.parseJSON(jsonObject); list.add(sp); } } } } }