i have $.post query, retrieving json data ajax response. issue want load data in datatable , header of table need created dynamically. my json data comes in format: [{"id":"11105","name":"gummy drop (iphone, free, row except cn, 72.3mb, w"},{"id":"11107","name":"gummy drop (ipad, free, row except cn, 72.3mb, w\/ "},{"id":"4274","name":"z-redirect non-targeted traffic dragon city mobile"},{"id":"6484","name":"z-redirect non-targeted traffic dragon city mobile"}] as can see, 2 keys id , name . want 2 keys , use header column unable so. here's code: $(document).ready(function() { window.prettyprint() && prettyprint(); $('#load').click(function() { var v = $('#drp_v').val(); var cnt = $('#drp_cnt').val(); var ctg = $('#drp_ctg').val(); ...