Here is my JSON response :
{
"Events": [
    {
        "id": 239,
        "EventTitle": "Summer Holidays",
        "EventURL": "",
        "EventURLAgency": "no",
    },
How can I get the id key in a variable ?
This is what I have tried so far :
  try {
                            JSONObject json = new JSONObject(response);
                            JSONArray jsonArray = json.getJSONArray("Events");
                            JSONObject jsonObject123 = json.getJSONObject("Events");
                            String a = jsonObject123.getString("id");
                            Log.e("HOLLA", a);