Error Array To String conversion button javascript Ajax request

Hi, I made a form to do a test, creating a button type javascript and loading the following code scriptcase returns error as attachment.
The problem does not exist when using php7.3

var listadati=[];
var dato = {
“codcontrollo”:“0”,
“statocheck”:“0”,
“nota”:""
};
listadati.push(dato);
var datijson = {“listadati”:listadati};

$.post(’…/blank_registracollaudo_976/’,datijson,function(msg){
alert(msg);
});

ERROR:

errorAjaxScriptcase