Populating DataTables with JSON in JavaScript Array

Populating DataTables with JSON in JavaScript Array

mscolamscola Posts: 1Questions: 1Answers: 0
edited May 2019 in Free community support

I have an array with JSON in it called customers.
How do I load this data into the Datatable?

$('#all_customers_table').DataTable( {
          dataSrc: 'customers',
      } );

Unfortunately, this doesn't work. Any ideas on how to add a JSON array into a DataTable?

Answers

This discussion has been closed.