I use the datatables.net component for working with tables.
$('#nocTable').DataTable( { ajax: { url: "/Jobs/GetIncomingNoc", type: "POST", processData: false, data: function ( json ) { return json.ID = 10; }, contentType: "application/json" }, columns: [ {achTransactions: "transactionId"}, {achTransactions: { _: "transactionDate.year" } } ] } ); At the same time in Request Payload shows:
[object Object] I suspect the problem is
data: function ( json ) { return json.ID = 10; } How to do right?