title: I am getting a type error when looping JSONArray in Android / Java
body: <p>I want to access posters and loop it in this JSON sting.    </p>
  
  <pre><code>{"r":
      {"posters":
         [
          {"rev":10,"poster_id":4,"poster_filename":"545397373c2c7","poster_filepath":"\/poster_files\/545397373c2c7","poster_synopsis":"This is the new synopsis for this exquisite poster I have created. You will marvel at its greatness and ask many questions.","poster_title":"Poster A"},
          {"rev":6,"poster_id":7,"poster_filename":"5453b54b83b5f","poster_filepath":"\/poster_files\/5453b54b83b5f","poster_synopsis":"This is a synopsis that is not real. No one can say what this synopsis really means. It is total B.S..","poster_title":"Poster A"}
         ],
  "msg":"72 &amp; 2",
  "status":"complete"}
  }
  </code></pre>
  
  <p>I have this to convert the string to JSONObject:</p>
  
  <pre><code>JSONObject jsonObject = new JSONObject(result);         
  
  JSONObject r = new JSONObject(jsonObject.getString("r"));
  
  JSONArray posters = r.getJSONArray("posters");
  </code></pre>
  
  <p>Android Studio says "Array type expected, found org.json.JSONArray when I try to loop posters:</p>
  
  <pre><code> int arraySize = posters.length();
  
   TextView myTextView = (TextView) findViewById(R.id.show_download_list);
  
   for(int i = 0; i &lt; arraySize; i++) {
       myTextView.append(posters[i]);
       myTextView.append("\n");
   }
  </code></pre>
  
  <p>Am I not converting the object correctly??</p>