[Solved] How to get this data in JSON in android


  JSONArray jsonArray = new JSONArray("here is your json string ") ;
    int count = jsonArray.length() ;
    for (int i = 0; i < count; i++) {
        JSONObject jsonObject = jsonArray.getJSONObject(i) ;
        String type = jsonObject.optString("type") ;
        JSONArray datesArray = jsonObject.optJSONArray("dates") ;
        int datesCount = datesArray.length() ;
        for(int j = 0; j< datesCount; j++){
           JSONObject dateItem = datesArray.get(j) ;
           String dateStr = dateItem.optString("date");
           JSONArray itemsArray = dateItem.optJSONArray("items");
           for(int f = 0 ; f < itemsArray.length(); f++){
               JSONObject valueJson = itemsArray.get(f);
               String value = valueJson.optString("value");
           }
        }

    }

3

solved How to get this data in JSON in android