public String toResourceString(final Object arg) {
        if (auditFormat == AuditTrailManager.AuditFormats.JSON && arg != null) {
            return postProcess(AuditTrailManager.toJson(arg));
        }
        return arg == null ? StringUtils.EMPTY : postProcess(arg.toString());
    }
To resource string.

@param arg the arg
@return the string
core/cas-server-core-audit-api/src/main/java/org/apereo/inspektr/audit/spi/support/ReturnValueAsStringResourceResolver.java