public byte[] openapiJson(HttpServletRequest request,
			String apiDocsUrl, Locale locale)
			throws JsonProcessingException {
		String serverBaseUrl = calculateServerUrl(request, apiDocsUrl, locale);
		OpenAPI openAPI = this.getOpenApi(serverBaseUrl, locale);
		return writeJsonValue(openAPI);
	}
Openapi json string.

@param request    the request
@param apiDocsUrl the api docs url
@param locale     the locale
@return the string
@throws JsonProcessingException the json processing exception
springdoc-openapi-starter-webmvc-api/src/main/java/org/springdoc/webmvc/api/OpenApiResource.java