src/main/java/com/arpnetworking/logback/serialization/steno/SafeSerializationHelper.java
static void safeEncodeList(final StringBuilder encoder, final List<?> valueAsList) {
        encoder.append("[");
        for (Object listValue : valueAsList) {
            safeEncodeValue(encoder, listValue);
            encoder.append(",");
        }
        if (valueAsList.isEmpty()) {
            encoder.append("]");
        } else {
            encoder.setCharAt(encoder.length() - 1, ']');
        }
    }
static void safeEncodeList(final StringBuilder encoder, final List<?> valueAsList) {
        encoder.append("[");
        for (Object listValue : valueAsList) {
            safeEncodeValue(encoder, listValue);
            encoder.append(",");
        }
        if (valueAsList.isEmpty()) {
            encoder.append("]");
        } else {
            encoder.setCharAt(encoder.length() - 1, ']');
        }
    }
/* package private