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