Documentation / @blazetrails/activesupport / JSON
JSON
Ruby's stdlib JSON module, the two entry points Rails hands to a serializer: kwarg — ActiveRecord::SignedId#signed_id_verifier passes the constant bare (signed_id.rb:79), and the module has to be nameable as JSON at that call site for the port to read like the Ruby.
This is stdlib, not Rails — ActiveSupport::JSON (json.ts in @blazetrails/activesupport) is a different module with encode/decode, and its dump carries ActiveSupport's HTML-escaping encoder rather than the json gem's plain generate.
dump falls back to the nil dump because globalThis.JSON.stringify returns undefined for the values Ruby has no counterpart for (undefined itself, functions, symbols) where MRI writes "null".
No Rails Equivalent
PERMANENT — Ruby stdlib, not Rails: JSON.dump (vendor/ruby/v3.3.11/ext/json/lib/json/common.rb:541) and JSON.load (:615) ship with the interpreter, so no Rails file defines them.