Ruby 3.0.0 リファレンスマニュアル > ライブラリ一覧 > jsonライブラリ > JSON::Stateクラス > []=
self[name] = value
Set the attribute name to value.