public String toResourceString(final Object arg) {
        if (auditFormat == AuditTrailManager.AuditFormats.JSON) {
            return AuditTrailManager.toJson(arg);
        }
        return arg.toString();
    }
To resource string string.

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