please help me in solving how to store image in json file and how retrive it i have already tried . but i am not able to
$(document).ready(function () { var jsonURL = "data/data.json"; $.getJSON(jsonURL, function (json) { var imgList= ""; $.each(json.products, function () { imgList += '<li><img src= "' + this.imgPath + '"></li>'; }); $('#dvProdList').append(imgList); }); }); <div> <ul></ul> </div> it here
thisin theeachevaluates to?