[Solved] display json response from ajax call in html table


You need to iterate on items object as array is insde items object:

$.each(json.items,function(index,item){
console.log(item);
tr = $('<tr/>'); 
    tr.append("<td><h3>" + item.name + "</h3><p><strong>" + item.productNo + "</strong></p><div>" + item.leaseOrNot + "</div></td>"); 
    tr.append("<td>" + item.commerceItemQty + "</td>"); tr.append("<td>" +item.price + "</td>"); $('table').append(tr); 

})

FIDDLE DEMO

3

solved display json response from ajax call in html table