respAddJsonField()
This procedure adds JSON String field into response.
| Parameter | Type | Description | |
|---|---|---|---|
| element | 30A VARYING, VARSIZE | Mandatory | Name of element |
| fieldName | 30A VARYING, VARSIZE | Mandatory | Field name |
| json_ptr | POINTER | Mandatory | Pointer to JSON String, NOTE: String must be in UCS2 |
| json_len | 10U 0 | Mandatory | Length in butes of JSON String |
The procedure returns pointer of field. If procedure can’t add field, then returns null.
Examples: