src/main/java/com/arpnetworking/logback/serialization/steno/SafeSerializationHelper.java
static void safeEncodeArray(final StringBuilder encoder, final Object value) {
        encoder.append("[");
        for (int i = 0; i < Array.getLength(value); ++i) {
            safeEncodeValue(encoder, Array.get(value, i));
            encoder.append(",");
        }
        if (Array.getLength(value) == 0) {
            encoder.append("]");
        } else {
            encoder.setCharAt(encoder.length() - 1, ']');
        }
    }
static void safeEncodeArray(final StringBuilder encoder, final Object value) {
        encoder.append("[");
        for (int i = 0; i < Array.getLength(value); ++i) {
            safeEncodeValue(encoder, Array.get(value, i));
            encoder.append(",");
        }
        if (Array.getLength(value) == 0) {
            encoder.append("]");
        } else {
            encoder.setCharAt(encoder.length() - 1, ']');
        }
    }
/* package private