private void configFilter(JSONWriter.Context context, Filter... filters) {
        if (filters == null) {
            return;
        }
        for (Filter filter : filters) {
            if (filter instanceof NameFilter) {
                NameFilter f = (NameFilter) filter;
                if (context.getNameFilter() == null) {
                    context.setNameFilter(f);
                } else {
                    context.setNameFilter(NameFilter.compose(context.getNameFilter(), f));
                }
            }

            if (filter instanceof ValueFilter) {
                ValueFilter f = (ValueFilter) filter;
                if (context.getValueFilter() == null) {
                    context.setValueFilter(f);
                } else {
                    context.setValueFilter(ValueFilter.compose(context.getValueFilter(), f));
                }
            }

            if (filter instanceof PropertyFilter) {
                PropertyFilter f = (PropertyFilter) filter;
                context.setPropertyFilter(f);
            }

            if (filter instanceof PropertyPreFilter) {
                PropertyPreFilter f = (PropertyPreFilter) filter;
                context.setPropertyPreFilter(f);
            }

            if (filter instanceof BeforeFilter) {
                BeforeFilter f = (BeforeFilter) filter;
                context.setBeforeFilter(f);
            }

            if (filter instanceof AfterFilter) {
                AfterFilter f = (AfterFilter) filter;
                context.setAfterFilter(f);
            }

            if (filter instanceof LabelFilter) {
                LabelFilter f = (LabelFilter) filter;
                context.setLabelFilter(f);
            }

            if (filter instanceof ContextValueFilter) {
                ContextValueFilter f = (ContextValueFilter) filter;
                context.setContextValueFilter(f);
            }

            if (filter instanceof ContextNameFilter) {
                ContextNameFilter f = (ContextNameFilter) filter;
                context.setContextNameFilter(f);
            }
        }
    }
Fastjson2 for Spring WebFlux.

@author Xi.Liu
@see AbstractJackson2Decoder
extension-spring5/src/main/java/com/alibaba/fastjson2/support/spring/http/codec/Fastjson2Encoder.java