This is the code that takes data in the form of json and it looks like this
function json2array() {
var data = {"images": [
"https:\/\/outpan-images.s3.amazonaws.com\/rg6j1l9iqd-0078915030900.jpg",
"https:\/\/outpan-images.s3.amazonaws.com\/835ggkjjq0-0078915030900.png",
"https:\/\/outpan-images.s3.amazonaws.com\/8fn652ptobh3ecw886.jpg",
"https:\/\/outpan-images.s3.amazonaws.com\/26naopw9flteq3qrcs.jpg",
"https:\/\/outpan-images.s3.amazonaws.com\/uhqq6sdj47-0078915030900.jpg"
]};
var keys = Object.keys(data);
keys.forEach(function(key) {
result.push(data[key]);
});
$("#myElement #images").append($('<img>', {
src: result[key]
}));
// return result;
}
<div class="container-fluid" id="myElement">
<img id="images"> </img>
</div>