title: Cannot convert JSONArray to JSONObject using Volley
body: <p>I'm trying to use Volley for consuming a web service. This is my logcat output:</p>
  
  <blockquote>
    <p>12-14 10:45:41.750: I/Annuaire2error(4005): org.json.JSONException: Value [{"label":[{"pers_nom":"yen","pers_id":"1","pers_prenom":"ines","pers_email":"yen98.ines@gmail.com","pers_phone":"443456784"},{"pers_nom":"Jamin","pers_id":"2","pers_prenom":" Derkok","pers_email":"jamin.drk23@gmail.com","pers_phone":"2345512398"}]}] of type org.json.JSONArray cannot be converted to JSONObject</p>
  </blockquote>
  
  <p>it seems that it can't access the value of <code>label</code> of my web service. How can I convert from <code>JSONArray</code> to <code>JSONObject</code>?</p>
  
  <p>This is my code:</p>
  
  <pre><code>mRequestQueue = Volley.newRequestQueue(getActivity().getApplicationContext());
  
  JsonObjectRequest jr = new JsonObjectRequest(Request.Method.GET,url,null,new Response.Listener&lt;JSONObject&gt;() {
      @Override
      public void onResponse(JSONObject response) {
          Log.i(TAG,response.toString());
          try{
              JSONObject value = response.getJSONObject("label");
              String essai = value.getString("pers_nom");
              /**
               * just for check 
               * */
              Toast.makeText(getActivity(), ""+essai, Toast.LENGTH_SHORT).show();
              Log.d("volley output", essai);
          } catch(Exception e) {
              e.printStackTrace();
          }
      }
  },new Response.ErrorListener() {
      @Override
      public void onErrorResponse(VolleyError error) {
          Toast.makeText(getActivity(), "errrrroooor", Toast.LENGTH_LONG).show(); 
          Log.i(TAG+"error",error.getMessage());
      }
  });
  
  mRequestQueue.add(jr);
  </code></pre>