title: org.json.JSON.typeMismatch(JSON.java:111)
body: <p>I am getting a <code>org.json.JSON.typeMismatch(JSON.java:111)</code> error while trying to create a <code>JSON</code> array. The received data looks like this:</p>
  
  <pre><code>{
   "result":[
    {
     "@type":"d",
     "@rid":"#-2:0",
     "@version":0,
     "a_adres":"kepez merkez geliyor herkez",
     "takipkodu":"464664",
     "agirlik":50
    },
    {
     "@type":"d",
     "@rid":"#-2:1",
     "@version":0,
     "a_adres":"merkez mahallesi 4 sok",
     "takipkodu":"sd4fs654f64",
     "agirlik":60
    }
   ]
  }
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code> protected String doInBackground(String... urls) {
          try {
              String getResponse = get("http://178.18.206.128:2480/command/nakliye/sql/select a_adres,takipkodu,agirlik from yukilan");
              return getResponse;
          } catch (Exception e) {
              this.exception = e;
              return null;
          }
      }
  
      protected void onPostExecute(String getResponse) {
          ListView liste=(ListView)findViewById(R.id.list_view);
  
          try {
              JSONArray yukilanarray =  new JSONArray(getResponse);
              List&lt;Yukilan&gt; yukilanlar = new ArrayList&lt;&gt;();
              //Populate the EmployeeDetails list from response
              for (int i = 0; i&lt;yukilanarray.length();i++){
                  Yukilan yeniilan = new Yukilan();
                  JSONObject yukilanobject = yukilanarray.getJSONObject(i);
                  yeniilan.setAdres(yukilanobject.getString(KEY_ADRES));
                  yeniilan.setAgirlik(yukilanobject.getString(KEY_AGIRLIK));
                  yeniilan.setTakip_kod(yukilanobject.getString(KEY_TAKIPKODU));
  
                  yukilanlar.add(yeniilan);
              }
              //Create an adapter with the EmployeeDetails List and set it to the LstView
              yukilanadapter = new Yukilanadapter(yukilanlar,getApplicationContext());
              liste.setAdapter(yukilanadapter);
  
          } catch (JSONException e) {
              e.printStackTrace();
          }
         //  System.out.println(getResponse);
      }
  </code></pre>
  
  <p>Please help.</p>