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.'); }