[ruby/json] Handle non-string keys returning immediate values via to_s
to_s
We can't directly call RBASIC_CLASS as the return value of to_s may be an immediate.
RBASIC_CLASS
https://github.com/ruby/json/commit/12dc394d11
[ruby/json] Handle non-string keys returning immediate values via
to_s
We can't directly call
RBASIC_CLASS
as the return value ofto_s
may be an immediate.https://github.com/ruby/json/commit/12dc394d11