public String render(final ObjectMapper mapper, final Object model) {
        return FunctionUtils.doUnchecked(() -> mapper.writeValueAsString(model));
    }
Render string.

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