From 6477195c6877a2853a09287fd729121ae94673ea Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Tue, 28 Feb 2023 10:47:17 +0100 Subject: [PATCH] TEMP : remove print_r, try with a foreach and with a =>, remove json_encode --- Source/API/script/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/API/script/index.php b/Source/API/script/index.php index 5f9fa1c..d8fb9dd 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -41,7 +41,7 @@ try{ } $temp = array('response' => "Rien", 'test' => "Test Ici"); foreach ($temp as $key => $value) { - $response->getBody()->write(json_encode($key."=>".$value));//'"'.$key.'": "'.$value.'"'); + $response->getBody()->write($key."=>".$value);//'"'.$key.'": "'.$value.'"'); } //return $response; return $response->withHeader('Content-type', 'application/json');