public String toJson() {
            return FunctionUtils.doUnchecked(() -> MAPPER.writeValueAsString(this));
        }
Convert to JSON.

@return the string
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/PermifyRegisteredServiceAccessStrategy.java