From d309aa5442d7011c6e667a66f4b533c77ba4e157 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Tue, 28 Feb 2023 10:38:52 +0100 Subject: [PATCH] TEMP : try to use print_r with correct parameters, and add 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 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'); });