title: JSONException: Not a primitive array?
body: <p>I'm having problems with receiving a JSON array from a URL. I have verified that my link is ok, and the correct JSON array is returned, and it even shows in the error message. I am unsure what it means. </p>
  
  <p>Error:</p>
  
  <pre><code>04-17 21:34:04.435  21842-22217/edu.appdesign.leaguestats W/System.err﹕ org.json.JSONException: Not a primitive array: class org.json.JSONArray
  04-17 21:34:04.435  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at org.json.JSONArray.&lt;init&gt;(JSONArray.java)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at edu.appdesign.leaguestats.GetStaticData$GetSummary.doInBackground(GetStaticData.java:90)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at edu.appdesign.leaguestats.GetStaticData$GetSummary.doInBackground(GetStaticData.java:76)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at android.os.AsyncTask$2.call(AsyncTask.java)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java)
  04-17 21:34:04.445  21842-22217/edu.appdesign.leaguestats W/System.err﹕ at java.lang.Thread.run(Thread.java)
  </code></pre>
  
  <p>Code: </p>
  
  <pre><code>    JSONArray jsonArray = jsonArrayParser.getJSONFromUrl(url2);
      JSONArray leagueArray = new JSONArray(jsonArray);
      summary.rTier = leagueData.getString("tier");
      summary.rLeague = leagueData.getString("leagueName");
      summary.rRank = leagueData.getString("rank");
      summary.rLeaguePoints = leagueData.getString("leaguePoints");
  </code></pre>
  
  <p>JSON:</p>
  
  <pre><code>[{
     "isHotStreak": false,
     "isFreshBlood": false,
     "leagueName": "Udyr's Lancers",
     "isVeteran": false,
     "tier": "GOLD",
     "lastPlayed": -1,
     "playerOrTeamId": "23591778",
     "leaguePoints": 0,
     "rank": "V",
     "isInactive": false,
     "queueType": "RANKED_SOLO_5x5",
     "playerOrTeamName": "NV43",
     "wins": 83
  }]
  </code></pre>
  
  <p>This is all being done from within an AsyncTask, so there is no issue there. Any idea what could be causing this?</p>