title: Parse JSONArray with no name using Volley
body: <p>I'm trying to figure out how to parse this JSON array that has no name. I've already looked at <a href="https://stackoverflow.com/questions/18416585/parsing-json-array-with-no-name-in-android">this</a> but i'm trying to use the Volley library to parse my data.</p>
  
  <pre><code> [
      {
          "name": "name1",
          "employee":1,
      },
      {
          "name": "name2",
          "employee":2,
      },
      {
          "name": "name3",
          "employee":3,
      }   
      ]
  </code></pre>
  
  <p>The java code I have now is </p>
  
  <pre><code>JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url,
              new Response.Listener&lt;JSONObject&gt;() {
                  @Override
                  public void onResponse(JSONObject response) {
                      try{
                          JSONArray jsonArray = response.getJSONArray(???);
  
                          for(int i = 0; i &lt;jsonArray.length(); i++){
                              JSONObject contact = jsonArray.getJSONObject(i);
  
                              String name = contact.getString("name");
                              int employee_ID = contact.getInt("employee");
  
                              }
                              textView.append(name + employee_ID );
                          }
                      }catch (JSONException e){
                          e.printStackTrace();
                      }
  
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      Log.e("VOLLY", error.toString());
                  }
              }
      );
  </code></pre>
  
  <p>I'm not sure what to put for the parameters of response.getJSONArray() since my array has no title.</p>