I want to read this JSON lines but because it start with JSONArray i'm a little confused
JSON : https://pastebin.com/zbGXVLJv
I want to retrieve the contents of "img_src"
Kotlin:
val jsonArrayRequest = JsonArrayRequest(url, Response.Listener(){
var data = (JSONArray("photos"))
for (itIndex in 0 until data.length()) {
val item = data.getJSONObject(itIndex)
val imgSrc = item.getString("img_src")
_PhotoList.add(PhotosHubble(imgSrc))
}