how can i pass the js object to datatable ajax
how can i pass the js object to datatable ajax

-------> js object -- var dataa = '{"data":[' +
'{"id":"1","name":"kkk", "position": "System Architect", "salary": "$320,800", "start_date": "2011/04/25", "office": "Edinburgh", "extn": "5421"}'
']}';
-------->the datatable
var table = $('#exampleee').DataTable({
"ajax": dataa,
"columns": [{
"className": 'details-control',
"orderable": false,
"data": null,
"defaultContent": ''
},
This question has an accepted answers - jump to answer
Answers
I think you're looking for the example here: https://datatables.net/examples/data_sources/js_array.html
Colin