DataTables: Cannot read property 'length' of undefined-- using datatables editor
DataTables: Cannot read property 'length' of undefined-- using datatables editor

Hi,
I'm currently reading the table as follow:
$('#fans').dataTable( {
dom: 'Bfrtip',
// "processing": true,
// "serverSide": true,
"ajax": "/api/fans",
columns: [
{ data: "id" },
{ data: "firstName" },
{ data: "surname" },
])}
-------------JSON data below > definitely not the default Datatables supported json format
{
"success":true,
"fans":[
{
"id":1111,
"firstName":"Joe",
"surname":"Marley",
"MoreDetail":{
"calledName":"bob",
"idType":"singer",
},
"_isDeleted":0
}
}
THANKS!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Change
to
and that should do the trick,
Colin