I hesitate to ask, as there are numerous other posts on this topic (one and two for example), but none of the solutions in those posts seem to apply to me.
I am trying t
Try in PHP as below (When request is an application/json, then you will not get data into $_POST)
var_dump(json_decode(file_get_contents("php://input")));
Try this May be it will work for you
$.ajax({
type: 'POST',
url:"controller.php?a=update-player",
data: data_json=JSON.stringify(playerinfo),
success: function (data){
},
});