class Fastjson2RenderTypedFactory extends Fastjson2RenderFactoryBase {
    private ObjectWriterProvider config;
    private JSONWriter.Feature[] features;

    public Fastjson2RenderTypedFactory(){
        features = new JSONWriter.Feature[]{
                JSONWriter.Feature.BrowserCompatible,
                JSONWriter.Feature.WriteClassName,
                JSONWriter.Feature.ReferenceDetection
        };
    }

    @Override
    public Render create() {
        return new StringSerializerRender(true, new Fastjson2Serializer(config,features));
    }

    @Override
    public ObjectWriterProvider config() {<FILL_FUNCTION_BODY>}

}

        if(config == null){
            config = new ObjectWriterProvider();
        }

        return config;
    
<methods>public non-sealed void <init>() ,public void addConvertor(Class<T>, Converter<T,java.lang.Object>) ,public void addEncoder(Class<T>, ObjectWriter#RAW) ,public abstract com.alibaba.fastjson2.writer.ObjectWriterProvider config() <variables>