Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

JSON.create_id=

(::_ToS create_id) -> ::_ToS
create_id=(new_value)

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'