module JSON::Ext::Generator

这是作为 C 扩展实现的 JSON 生成器。可以通过在 JSON 中设置 generator= 方法来配置使用它。

JSON.generator = JSON::Ext::Generator

使用 generator= 方法。