Method: JSON::Ext::Generator::State#strict

Defined in:
ext/json/ext/generator/generator.c

#strictObject

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.



1810
1811
1812
1813
1814
# File 'ext/json/ext/generator/generator.c', line 1810

static VALUE cState_strict(VALUE self)
{
    GET_STATE(self);
    return state->strict ? Qtrue : Qfalse;
}