why this json invalid for the datatable

why this json invalid for the datatable

vinod_wattamwarvinod_wattamwar Posts: 3Questions: 2Answers: 0

{
"draw": 1,
"recordsTotal": -1,
"recordsFiltered": -1,
"aaData": [
["1", "First American Title", "12,930", "16.16%", "$6,471,485,163", "18.03%", "11,420", "16.32%", "$5,049,631,000", "17.24%", "4,161", "16.33%", "2,185,281,358", "16.41%", "80", "8.23%", "21,149,127", "7.16%", "1,398", "45.27%", "1,061,491,999", "48.22%", "0", "0.00%", "0", "0.00%", "4,205", "19.31%", "$1,847,271,772", "19.85%", "0", "0.00%", "$0", "0.00%", "0", "0.00%", "0", "0.00%", "0", "0.00%", "0", "0.00%", "0", "0.00%", "$0", "0.00%", "0", "0.00%", "$0", "0.00%", "7,291", "14.45%", "3,203,562,679", "15.96%", "1,434", "18.48%", "0", "0.00%", "7,904", "1,614", "820", "59", "0", "0", "12,930", "0"],
[]
]

}
and below my datatable
$("#dataTable").dataTable().fnDestroy();
var table = $('#dataTable').DataTable({
scrollY: itableHeight,
scrollX: true,
scrollCollapse: true,
paging: false,
order: [],
bFilter: false,
bInfo: false,
info: false,
Retrieve: true,
processing: true,
serverSide: true,
"ajax": {
"url": "WebServices/AutoCompleteService.asmx/GetDrilldownData",
"type": "POST",
//"contentType": "application/json; charset=utf-8",
"dataType": "json",
"data": function (d) {
d.cat1 = cat1;
d.level = level;
// d.custom = $('#myInput').val();
// etc
},
dataSrc: "data",
"sAjaxDataProp": "data"
},

Answers

  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin

    First, I'd ask if you could please not post duplicate questions. Secondly, please post a link to the page showing the issue.

    I don't see a problem with the above, so I would need a link to the page to be able to offer any help.

    Allan

  • vinod_wattamwarvinod_wattamwar Posts: 3Questions: 2Answers: 0

    thanks for your immediate response.
    Sorry Allan for duplicate Post.
    look like issue with my data.

This discussion has been closed.