public void render(final Object model, final HttpServletResponse response) {
        Unchecked.consumer(__ -> {
            val jsonConverter = new MappingJackson2HttpMessageConverter();
            jsonConverter.setPrettyPrint(true);
            val jsonMimeType = MediaType.APPLICATION_JSON;
            jsonConverter.write(model, jsonMimeType, new ServletServerHttpResponse(response));
        }).accept(model);
    }
Render model and view.

@param model    the model
@param response the response
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java