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);
    }
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);
    }
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 ) ; }
Build and return OpenAPI json.

@param null|string $alternativeHost
@param bool $pretty

@return \Swagger\Annotations\Swagger
Build and return OpenAPI json .