/* * call-seq: to_json(*) * * Returns a JSON string representation for this Integer number. */ static VALUE mInteger_to_json(int argc, VALUE *argv, VALUE self) { VALUE result = rb_funcall(self, i_to_s, 0); FORCE_UTF8(result); return result; }