diff --git a/stdlib/json/0/json.rbs b/stdlib/json/0/json.rbs index 6d242c831..5750d9c5c 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. # @@ -754,6 +751,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true} # + %a{deprecated} def self.dump_default_options: () -> options # @@ -761,6 +759,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 +1000,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 +1120,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 +1157,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 #