Server side processing for data in CSV format from ajax
Server side processing for data in CSV format from ajax
We need a server side pagination in datatable. For that there is a ajax option in datatable. We are getting data in CSV format from server and are converting it to JSON format at client side. But it seems that Ajax option expects the data loaded to be in JSON format from ajax response itself. When data is loaded in CSV format it shows this message -
DataTables warning: table id={id} - Invalid JSON response.
Is there any way to make ajax option accept data in CSV format? We cannot change data format from CSV to JSON at server side.