/Users/tagomoris/.rbenv/versions/3.0.0/lib/ruby/3.0.0/json/common.rb:639:in `dump': can not access instance variables of classes/modules from non-main Ractors (Ractor::IsolationError)
from ractor.rb:7:in `block in <main>'
<internal:ractor>:694:in `take': thrown by remote Ractor. (Ractor::RemoteError)
from ractor.rb:10:in `<main>'
/Users/tagomoris/.rbenv/versions/3.0.0/lib/ruby/3.0.0/json/common.rb:639:in `dump': can not access instance variables of classes/modules from non-main Ractors (Ractor::IsolationError)
from ractor.rb:7:in `block in <main>'
We can do
obj.to_json
. Wow.