I want to Loop through my data and do stuff.
Following
var stuff = JSON.stringify(data)
Returns me something like this:
{"0":"data:image/png;base64,testi,"2":"data:image/png;base64, testi2, ....
I Need to Loop through that but the Approach I did, did not work.
for (var i = 0; i < stuff.length; i++) {
$('#img-thumb-id'+i).attr('src', data[i]);
}
Edit
I am using JSON.stringify
because console.log(data)
just returned me object object which I cant work with.