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