title: How to store JSON response in an array list?
body: <p>I want to store a JSON response in array list so that it will be easy to fetch data and assign it to other variables.
  This is my JSON response:</p>
  
  <pre><code>{  
      "statusCode":"1001",
      "message":"Success",
      "response":{  
          "holidays":[  
           {  
              "holidayId":78,
              "year":2015,
              "date":"2015-01-01",
              "day":"Thrusday",
              "occasion":"New Year Day",
            },
           {  
              "holidayId":79,
              "year":2015,
              "date":"2015-01-15",
              "day":"Thrusday",
              "occasion":"Pongal/Sankranthi",
              },
           {  
              "holidayId":80,
              "year":2015,
              "date":"2015-01-26",
              "day":"Monday",
              "occasion":"Republic Day",
              }
        ],
      "year":0
     }
  }
  </code></pre>
  
  <p>This is the way I am fetching data from the response:</p>
  
  <pre><code>JSONObject jobj = new JSONObject(result);
  String statusCode = jobj.getString("statusCode");
  
  if (statusCode.equalsIgnoreCase("1001"))
  {
      System.out.println("SUCCESS!");
      String response = jobj.getString("response");
  
      JSONObject obj = new JSONObject(response);
      String holidays = obj.getString("holidays");
  
      ArrayList&lt;HolidayResponse&gt; holidayResponse = holidays; //This stmt. shows me error
  
  }
  </code></pre>
  
  <p>How do I solve this issue? Please help me.</p>