src/main/java/com/arpnetworking/logback/serialization/steno/SafeSerializationHelper.java
static void safeEncodeMap(final StringBuilder encoder, final Map<?, ?> valueAsMap) {
        encoder.append("{");
        for (Map.Entry<?, ?> entry : valueAsMap.entrySet()) {
            encoder.append("\"")
                    .append(entry.getKey().toString())
                    .append("\":");
            safeEncodeValue(encoder, entry.getValue());
            encoder.append(",");
        }
        if (valueAsMap.isEmpty()) {
            encoder.append("}");
        } else {
            encoder.setCharAt(encoder.length() - 1, '}');
        }
    }
static void safeEncodeMap(final StringBuilder encoder, final Map<?, ?> valueAsMap) {
        encoder.append("{");
        for (Map.Entry<?, ?> entry : valueAsMap.entrySet()) {
            encoder.append("\"")
                    .append(entry.getKey().toString())
                    .append("\":");
            safeEncodeValue(encoder, entry.getValue());
            encoder.append(",");
        }
        if (valueAsMap.isEmpty()) {
            encoder.append("}");
        } else {
            encoder.setCharAt(encoder.length() - 1, '}');
        }
    }
/* package private