juppix: JSON - falsches Format

Beitrag lesen

Okay... aber ich habe dieses "Data" Objekt ja gar nicht…

und folgender Code wirft einen Fehler (ohne "Data"):

<script>
$(document).ready(function() {
    $('#example').DataTable( {
        "ajax": './getCalendarData.php',
        "columns": [
            { "name" },
            { "position" },
            { "office" },
            { "extn" },
            { "start_date" },
            { "salary" }
        ]
    } );
} );
</script>