public function json($alternativeHost = null, $pretty = false)
    {
        $this->build($alternativeHost);

        $jsonOptions = JSON_UNESCAPED_SLASHES;

        if ($pretty) {
            $jsonOptions |= JSON_PRETTY_PRINT;
        }

        return json_encode($this->analysis->swagger, $jsonOptions);
    }