Been working on this bit for ages and can't seem to work it out. On my webpage, I click a photo (or if no photo has been uploaded yet, a font-awesome icon). That click opens a modal and passes it an ID. As soon as the modal opens, it sends an ajax request to php, with that passed ID. The query uses PDO ( fetchAll(PDO::FETCH_ASSOC) ) and that returns this dataset to my calling script.
[{"id":"200925","image_name":"IMG_7160.JPG","img_seq":"1"},
{"id":"200929","image_name":"IMG_7161.JPG","img_seq":"2"},
{"id":"201014","image_name":"IMG_7183.JPG","img_seq":"3"}]
What is this dataset called in JS? Object? Array of arrays? Else? What is the best way to loop through this resultset so I can output the images in the modal.