Initialize data table using array containing data converted from json

Initialize data table using array containing data converted from json

pratsprats Posts: 45Questions: 21Answers: 0
edited December 2016 in Free community support

Hi, I am having JSON data which I am converting into array but when I tried to initialized data table using this array,it showed nothing in the table.
`var dataSet=[{},{},{}];
var arr=$.map(dataSet, function(e1){
return e1;
})

$(document).ready(function(){
var table=$('#example').Datatable({
data:arr
});
});
`

This discussion has been closed.