 <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>For(int i=0; JsonArray.length(); i++) { JSONObject jsonObj = JsonArray.getJSONObject(i); CourseDetail[i].setCourseName(jsonObj.getString("Name")); ... ... }</code></pre> </div> </div> </p> <p>Hope this help!</p>