src/Router/Response.php
public static function renderJSON($body = null, $status = null)
    {
        $body = json_encode($body, JSON_NUMERIC_CHECK);
        $Response = new self($body);

        if (isset($status)) {
            $Response->status($status);
        }

        $Response->headers(['Content-Type' => 'application/json']);

        return $Response;
    }
public static function renderJSON($body = null, $status = null)
    {
        $body = json_encode($body, JSON_NUMERIC_CHECK);
        $Response = new self($body);

        if (isset($status)) {
            $Response->status($status);
        }

        $Response->headers(['Content-Type' => 'application/json']);

        return $Response;
    }
@param null $body
@param null $status

@return Response