static ObjectWriter<?> register(Type type, ObjectWriter<?> objectWriter, boolean fieldBased) {
        return JSONFactory.getDefaultObjectWriterProvider().register(type, objectWriter, fieldBased);
    }
Register an {@link ObjectWriter} for {@link Type} in default {@link  com.alibaba.fastjson2.writer.ObjectWriterProvider}

@see JSONFactory#getDefaultObjectWriterProvider()
@see com.alibaba.fastjson2.writer.ObjectWriterProvider#register(Type, ObjectWriter)
@since 2.0.38
core/src/main/java/com/alibaba/fastjson2/JSON.java