diff --git a/Gemfile b/Gemfile index 033a820f4..7ffff1137 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ gem "rspec" gem "rubocop" gem "rubocop-rubycw" gem "rubocop-on-rbs" -gem "json", "~> 2.10.2" +gem "json" gem "json-schema" gem "goodcheck" gem 'digest' diff --git a/Gemfile.lock b/Gemfile.lock index 2c64c708b..76106c26f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,7 +55,7 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.10.2) + json (2.17.1) json-schema (6.0.0) addressable (~> 2.8) bigdecimal (~> 3.1) @@ -201,7 +201,7 @@ DEPENDENCIES fileutils goodcheck irb - json (~> 2.10.2) + json json-schema memory_profiler minitest diff --git a/stdlib/json/0/json.rbs b/stdlib/json/0/json.rbs index 6d242c831..fd1c24560 100644 --- a/stdlib/json/0/json.rbs +++ b/stdlib/json/0/json.rbs @@ -14,9 +14,6 @@ end class JSON::GeneratorError < JSON::JSONError end -class JSON::UnparserError < JSON::GeneratorError -end - # # This exception is raised if a parser error occurs. # @@ -711,8 +708,6 @@ module JSON # def self.create_id=: (_ToS create_id) -> _ToS - def self.deep_const_get: (interned path) -> untyped - # @@ -761,6 +757,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # + %a{deprecated} def self.dump_default_options=: (options) -> options # - # Encodes string using String.encode. - # - def self.iconv: (encoding to, encoding from, String string) -> String - # @@ -1010,6 +998,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # + %a{deprecated} def self.load_default_options=: (options) -> options # - # - alias self.restore self.load - - # - # - alias restore load - # # Sets or Returns the JSON generator state class that is used by JSON. # @@ -1152,10 +1118,6 @@ module JSON # Sets or Returns the JSON generator state class that is used by JSON. # def self.state=: (state) -> state - - alias self.unparse self.generate - - alias unparse generate end JSON::FAST_STATE_PROTOTYPE: JSON::state @@ -1193,6 +1155,7 @@ module Kernel # Outputs *objs* to STDOUT as JSON strings in the shortest form, that is in one # line. # + %a{deprecated} def j: (*_ToJson) -> nil #