static void config(JSONReader.Feature feature, boolean state) {
        if (feature == JSONReader.Feature.SupportAutoType && state) {
            throw new JSONException("not support config global autotype support");
        }

        if (state) {
            JSONFactory.defaultReaderFeatures |= feature.mask;
        } else {
            JSONFactory.defaultReaderFeatures &= ~feature.mask;
        }
    }
Enable or disable the specified features in default reader

@param feature the specified feature to be used
@param state enable this feature if and only if {@code state} is {@code true}, disable otherwise
@since 2.0.6
core/src/main/java/com/alibaba/fastjson2/JSON.java