diff --git a/src/ApplicationResponse.php b/src/ApplicationResponse.php index e66e021..ea67b67 100644 --- a/src/ApplicationResponse.php +++ b/src/ApplicationResponse.php @@ -65,7 +65,8 @@ public function returnResponse() : ResponseInterface return new JsonResponse( $this->controllerResponse->getData(), $this->controllerResponse->getStatusCode(), - $this->getResponseHeaders() + $this->getResponseHeaders(), + JsonResponse::DEFAULT_JSON_FLAGS | JSON_PARTIAL_OUTPUT_ON_ERROR ); break; case Router::TEXT: