From 1b8a82f4857255c98802957757367483397093c0 Mon Sep 17 00:00:00 2001 From: odan Date: Sun, 6 Oct 2019 16:41:01 +0200 Subject: [PATCH] Disable pretty print --- src/Responder/JsonResponder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Responder/JsonResponder.php b/src/Responder/JsonResponder.php index e81bdb4ef..d1fc8f1ba 100644 --- a/src/Responder/JsonResponder.php +++ b/src/Responder/JsonResponder.php @@ -37,7 +37,7 @@ public function __construct(ResponseFactoryInterface $responseFactory) */ public function render(array $data = null): ResponseInterface { - $json = json_encode($data, JSON_PRETTY_PRINT); + $json = json_encode($data); if ($json === false) { throw new RuntimeException('Malformed UTF-8 characters, possibly incorrectly encoded.'); }