Javascript Datatables插件在JSON数据的第1行第1列返回以下错误SyntaxError:JSON.parse:意外字符

Javascript Datatables插件在JSON数据的第1行第1列返回以下错误SyntaxError:JSON.parse:意外字符,javascript,json,ajax,laravel,datatables,Javascript,Json,Ajax,Laravel,Datatables,嘿,伙计们,我有一个问题,我在服务器端使用datatables插件,ajax请求响应中出现以下错误SyntaxError:JSON.parse:JSON数据第1行第1列的意外字符我真的不知道JSON为什么无效 我使用的是laravel,在控制器中你可以看到这段代码 public function gestionParticipant($id){ $participant = Participant::all()->whereIn('event_id',$id);

嘿,伙计们,我有一个问题,我在服务器端使用datatables插件,ajax请求响应中出现以下错误SyntaxError:JSON.parse:JSON数据第1行第1列的意外字符我真的不知道JSON为什么无效 我使用的是laravel,在控制器中你可以看到这段代码

public function gestionParticipant($id){
        $participant = Participant::all()->whereIn('event_id',$id);
        return DataTables::of($participant)
        ->addColumn('Adherent',function($participant){
            return ''.$participant->participantAdherent->first_name.'';
        })
        ->addColumn('Participant',function($participant){
            return ''.$participant->nom_participant.' '.$participant->nom_participant.'';
        })
        ->addColumn('Payeur',function($id){
            $payeur = Payeur::all()->whereIn('event_id',$id);
            return ''.$payeur->nom_payeur.' '.$payeur->prenom_payeur.'';
        })
        ->addColumn('Montant',function(){

        })
        ->addColumn('Presence',function(){

        });
    }
我试图以引导模式显示数据表 下面是视图中的javascript

$('#table').on('click','.showModal',function() {
        var id = $(this).data('id');
        $('#tableModal').DataTable({
                "processing": true,
                "serverSide": true,
                "ajax": "/admin/evenment/event/participant/ajax_gestion_participant/"+id,
                "columns":[
                    {"data":"Adherent"},
                    {"data":"Participant"},
                    {"data":"Payeur"},
                    {"data":null},
                    {"data":null},
                ]
            });
        $('#gestionModal').modal('show');

plz帮助

哪个是插件?返回什么->addColumn(“”,function(){})??我忘记了->使(真实);在末尾x)哪个是插件?返回什么->addColumn(“”,function(){})??我忘记了->使(真实);在末尾(x)