class ObjectWriterImplMapEntry
        extends ObjectWriterPrimitiveImpl {
    static final ObjectWriterImplMapEntry INSTANCE = new ObjectWriterImplMapEntry();

    @Override
    public void writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {
        Map.Entry entry = (Map.Entry) object;
        if (entry == null) {
            jsonWriter.writeNull();
            return;
        }

        jsonWriter.startArray(2);
        Object key = entry.getKey();
        long contextFeatures = jsonWriter.context.getFeatures();
        if ((contextFeatures & (WriteNonStringKeyAsString.mask | BrowserCompatible.mask)) != 0) {
            jsonWriter.writeAny(key == null ? "null" : key.toString());
        } else {
            jsonWriter.writeAny(key);
        }
        jsonWriter.writeAny(entry.getValue());
    }

    @Override
    public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {<FILL_FUNCTION_BODY>}
}

        Map.Entry entry = (Map.Entry) object;
        if (entry == null) {
            jsonWriter.writeNull();
            return;
        }

        jsonWriter.startObject();
        Object key = entry.getKey();
        long contextFeatures = jsonWriter.context.getFeatures();
        if ((contextFeatures & (WriteNonStringKeyAsString.mask | BrowserCompatible.mask)) != 0) {
            jsonWriter.writeAny(key == null ? "null" : key.toString());
        } else {
            jsonWriter.writeAny(key);
        }
        jsonWriter.writeColon();
        jsonWriter.writeAny(entry.getValue());
        jsonWriter.endObject();
    
<methods>public non-sealed void <init>() ,public Function#RAW getFunction() ,public void writeArrayMapping(com.alibaba.fastjson2.JSONWriter, java.lang.Object, java.lang.Object, java.lang.reflect.Type, long) ,public void writeArrayMappingJSONB(com.alibaba.fastjson2.JSONWriter, java.lang.Object, java.lang.Object, java.lang.reflect.Type, long) <variables>