Try to replace this line :
str += "url: "+articles.getJSONObject(0).getString("image_second");
With this :
str += "url: "+articles.getJSONObject(2).getString("image_second");
OR
str += "url: "+articles.getJSONObject(3).getString("image_second");