title: Type Safety warning with JSON Iterator
body: <p>My problem comes from getting an Iterator from a JSONObject.</p>
  
  <p>Code generating error in its simplest form:</p>
  
  <pre><code>String json = client.retrieveList();
  JSONObject jsonList = new JSONObject(json);
  Iterator&lt;String&gt; i = jsonList.keys();
  
  while(i.hasNext())
  {
      String next = i.next();
      JSONArray jsonArray = jsonList.getJSONArray(next);
      // Do stuff with jsonArray, example: jsonArray.getString(0), jsonArray.getString(1);
  }
  </code></pre>
  
  <p>The exact warning is:
  Type safety: The expression of type Iterator needs unchecked conversion to conform to Iterator</p>
  
  <p>So the question is how can I eradicate this warning?</p>
  
  <p>Many thanks!</p>