respAddJsonField()

This procedure adds JSON String field into response.

ParameterTypeDescription
element30A VARYING, VARSIZEMandatoryName of element
fieldName30A VARYING, VARSIZEMandatoryField name
json_ptrPOINTERMandatoryPointer to JSON String, NOTE: String must be in UCS2
json_len10U 0MandatoryLength in butes of JSON String

The procedure returns pointer of field. If procedure can’t add field, then returns null.

Examples:

respAddJsonField('data': 'jsonData': %ADDR(xxJsonData): %LEN(xxJsonData)*2 );