My JSON return object is like following. I try to append a table with jquery and it work well if the data is like item.district, but error prompt if it`s like item.host_detail.site(2 "dot").
Thank For help in advance.
Object
district:"KUCHING"
host_detail.HostID:"41"
host_detail.site:"SIMONTESTING"
ipaddress:"10.17.102.169"
log_detail.task:"Auto-Backup"
$.each(data, function(i, item){
$("#tabledisplay > tbody").append("<tr><td>" + item.host_detail.site + "</td><td>" + item.district + "</td></tr>");
})