The JSON is in this format
....
     "dummy": {
            "e": "numeric",
            "e2": "dum",
            "e3": "numeric",
            "e4": "numeric"
        },
        ,
        "name":[
        {
              "f1":"a",
              "f2":"b",
        }
      ],
....
I want to get the value of f1 or f2
Java code:
 try {
  JSONObject Object = new JSONObject(json);
  JSONArray Array2 = rootObject2.getJSONArray("name");
  for (int i=0; i<Array2.length(); i++)
{
      JSONObject venueJson2 = dataArray2.getJSONObject(i);
      venue.setSportTypes(venueJson2.getString("f1"));                     
    }
I have tried to use as JSON array and I get value as null, can anyone say what is the correct format to get the value.
 
     
    