The example shows an SQL definition for a UDM with a JSON parameter, and a C function that defines the method.
/* Parameter style SQL: */ CREATE INSTANCE METHOD JSONMethod (p1 JSON(100)) FOR Some_UDT RETURNS INTEGER FOR Some_UDT NO SQL PARAMETER STYLE SQL DETERMINISTIC LANGUAGE C EXTERNAL NAME 'CS!JSONMethod!JSONMethod.c!F!JSONMethod';
/* C source file name: JSONMethod.c */ void JSONMethod ( UDT_HANDLE *someUdt, JSON_HANDLE *jsonval, INTEGER *result, int *indicator_this, int *indicator_aryval, int *indicator_result, char sqlstate[6], SQL_TEXT extname[129], SQL_TEXT specific_name[129], SQL_TEXT error_message[257]) { /* body function */ }