In Datatables, is there a way to use data that is sent from the server as an array of JSON objects? The format that seems to be expected is an array of arrays.
This format works:
var table1Data = [['John', 36], ['Jane', 25]];
But this does not:
var table2Data = [{Name: 'John', Age: 36}, {Name: 'Jane', Age: 25}];
(Please just answer factually whether Datatables supports this or not, instead of turning this into a debate of which format is better).
The solution is documented here – just use
mDatato specify which columns you need instead ofsTitle: