title: JSONArray to string array
body: <p>It looks like too much boilterplate to convert a json array to string[]. Is there any simpler and elegant way?</p>
  
  <pre><code>final JSONArray keyArray = input.getJSONArray("key");
  String[] keyAttributes = new String[keyArray.length()];
  for(int i = 0; i &lt; keyArray.length(); i++) {
      keyAttributes[i] = keyArray.getString(i);
  }
  </code></pre>