Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

JSON.on_mixed_keys_hash

on_mixed_keys_hash(hash)

Called from the extension when a hash has both string and symbol keys

See also .[] #dump #generate also in 4.0