End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
JSON.create_id=
create_id=(new_value)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/json/lib/json/common.rb, line 120
def self.create_id=(new_value)
Thread.current[CREATE_ID_TLS_KEY] = new_value.dup.freeze
end
Sets create identifier, which is used to decide if the json_create hook of a class should be called; initial value is json_class:
Example
JSON.create_id # => 'json_class'
See also
.create_id
.create_pretty_state
.create_fast_state
.iconv
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1