title: How to convert JSONArray to Java String Array
body: <p>I want to extract authors from this JSON, I successfully get the <code>JSONArray</code> but I don't know how to convert it into <code>String[]</code>, I have to pass this <code>String[]</code> to a method. Please try to keep the solution simple as I am just a beginner.</p>
  <p>JSON :</p>
  <pre><code>{
    &quot;volumeInfo&quot;: {
      &quot;title&quot;: &quot;Android&quot;,
      &quot;authors&quot;: [
        &quot;P.K. Dixit&quot;
      ]
    }
  }
  </code></pre>
  <p>Code:</p>
  <pre><code>JSONObject volumeInfo = currentBook.getJSONObject(&quot;volumeInfo&quot;);
  // Extract the value for the key called &quot;title&quot;
  String title = volumeInfo.optString(&quot;title&quot;);
  // Extract the array for the key called &quot;authors&quot;
  JSONArray authors = volumeInfo.optJSONArray(&quot;authors&quot;);
  </code></pre>