Skip to content
instance method

JSON::Ext::Generator::State#strict?

strict?

Alias of #strict

If this boolean is false, types unsupported by the JSON format will be serialized as strings. If this boolean is true, types unsupported by the JSON format will raise a JSON::GeneratorError.

See also #strict #strict= #to_h #to_hash also in 4.1 · 3.4 · 3.3