When using Ajax with jQuery DataTables, how do I determine what to do with the data returned?
Short Answer For your specific question, you were very close with dataSrc: “accounts:account”. Instead, it needs to be dataSrc: “accounts.account” – using a dot instead of a colon. This is standard JavaScript dotted object notation for navigating down through the levels of a JSON structure. So: ajax: { url: “./get_all_accounts.php”, dataType: “JSON”, // not actually … Read more