Valeurs de la console PHP
echo "<script>console.log(JSON.parse('" . json_encode($data) . "'));</script>";
Literate Lentil
echo "<script>console.log(JSON.parse('" . json_encode($data) . "'));</script>";