module JSON
def fast_unparse(...)
def fast_unparse(...) if RUBY_VERSION >= "3.0" warn "JSON.fast_unparse is deprecated and will be removed in json 3.0.0, just use JSON.generate", uplevel: 1, category: :deprecated else warn "JSON.fast_unparse is deprecated and will be removed in json 3.0.0, just use JSON.generate", uplevel: 1 end generate(...) end