Generates a valid JSON document from object
obj and returns the result. If no valid JSON document can be created this method raises a GeneratorError exception.
static VALUE cState_generate(VALUE self, VALUE obj)
{
VALUE result = cState_partial_generate(self, obj);
GET_STATE(self);
(void)state;
return result;
}