title: ERROR in org.json.JSONException: of type org.json.JSONArray cannot be converted to JSONObject
body: <pre><code>  StringRequest stringRequest = new StringRequest(
                  Request.Method.POST,
                  Configs.Login,
                  new Response.Listener&lt;String&gt;() {
                      @Override
                      public void onResponse(String response) {
                          progressDialog.dismiss();
                          try {
                              JSONObject obj = new JSONObject(response);
                              if(!obj.getBoolean("error")){
  
                                  startActivity(new Intent(getApplicationContext(), MainActivity.class));
                                  finish();
                              }else{
                                  Toast.makeText(
                                          getApplicationContext(),
                                          obj.getString("message"),
                                          Toast.LENGTH_LONG
                                  ).show();
                              }
                          } catch (JSONException e) {
                              e.printStackTrace();
                          }
                      }
                  },
                  new Response.ErrorListener() {
                      @Override
                      public void onErrorResponse(VolleyError error) {
                          progressDialog.dismiss();
  
                          Toast.makeText(
                                  getApplicationContext(),
                                  error.getMessage(),
                                  Toast.LENGTH_LONG
                          ).show();
                      }
                  }
          )
              @Override
  </code></pre>
  
  <p>I´m getting error in the JSON format that shows </p>
  
  <p>org.json.JSONException: of type org.json.JSONArray cannot be converted to JSONObject</p>
  
  <p>This is my JSON format</p>
  
  <p>[{"id":"1","nome":"admin","email":"p_asr@hotmail.com","password":"xxxxxxx"}]</p>