Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Class#json_creatable?
json_creatable?
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/ext/json/lib/json/common.rb, line 694
def json_creatable?
respond_to?(:json_create)
end
Returns true if this class can be used to create an instance from a serialised JSON string. The class has to implement a class method json_create that expects a hash as first parameter. The hash should include the required data.