Ruby 3.4 リファレンスマニュアル

instance method JSON::State#ascii_only?

ascii_only? -> boolRuby 2.1.0 から[permalink][rdoc][edit]

ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。そうでない場合に偽を返します。