DataTables: Não é possível ler a propriedade 'length' de undefined

Entendo que esse é um problema popular e li todas as perguntas semelhantes aqui no Stack Overflow e em outros sites (incluindo o site de tabelas de dados).

Para esclarecer, estou usando

PHP CodeigniterMaterliazecss

Também assegurei-me de que recebi a matriz JSON corretamente:

[{"name_en":"hello","phone":"55555555"},{"name_en":"hi","phone":"00000000"}]

Minha tabela HTML fica assim:

<table id="customer_table">
     <thead>
         <tr>
            <th>Name</th>
            <th>Phone</th>
         </tr>
     </thead>
</table>

E aqui está o meudocument.ready função:

  $(document).ready(function(){
            //$('#customer_table').DataTable();
            $('#customer_table').DataTable( {
                "ajax": 'json',
                "dataSrc": "",
                 "columns": [
                    { "data": "email" },
                    { "data": "name_en" }
                ]
            });
  });

O erro que estou recebendo é

TypeError não capturado: não é possível ler a propriedade 'length' de undefined

questionAnswers(8)

yourAnswerToTheQuestion