diff --git a/Source/API/script/index.php b/Source/API/script/index.php index 7e698d7..91451aa 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -40,7 +40,7 @@ try{ } } $temp = array('response' => "Rien", 'test' => "Test Ici"); - $response->getBody()->write(print_r($temp,true)); + $response->getBody()->write(json_encode(print_r($temp,true))); //return $response; return $response->withHeader('Content-type', 'application/json'); });