<?php
if($_SERVER["REQUEST_METHOD"]=="POST"){
    $data = array(
        "dossier_valide" => false,
        "studentId" => $_POST['studentId'],
        "prenom" => "jean-patrick",
        "nom" => "doe.remifa.sollasi",
        "mailCalcule" => "patrick.doe.remifa.sollasi@ext.imt-nord-europe.fr",
        // "mailsPossibles" => array()
        "mailsPossibles"=>array("jean-patrick.doe@ext.imt-nord-europe.fr","jean.doe@ext.imt-nord-europe.fr","patrick.doe@ext.imt-nord-europe.fr","jean.remifa.sollasi@ext.imt-nord-europe.fr","jp.doeremifasollasi@ext.imt-nord-europe.fr")
    );

        echo json_encode($data);
}
?>