datatable ajax source
datatable ajax source
lakshman553
Posts: 3Questions: 2Answers: 0
hi, i get the invalid json error. i have tried JSON parser and couple of other parser, all of them shows my json is valid.
somehow datatable shows wrong format error.
please help
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Per the forum rules, please link to the page so we can debug it.
Allan
this is my json file
i have imported
my javascript is
i get the error
Use
ajax.dataSrc
to tell DataTables if you want it to read data from somewhere other than the defaultdata
property in the object. In this case you would usedataSrc: 'records'
- otherwise DataTables won't know that is where you keep your data.Allan