encodeResponseString

Type: Boolean

The encodeResponseString property of the JadeRestService class enables you to control whether string responses are enclosed in double quote ("") characters.

By default, this property is set to true so that any REST service method that returns a string type (that is, a String, Character, or StringUtf8 primitive type) is enclosed in double quote ("") characters. Any existing quotes in the string response are escaped, as are other special characters.

Set the value of the encodeResponseString property to false in an individual method to prevent any string encoding. (If the encodeResponseString property is set to false, the returned string will be returned unmodified in the REST response.)

When set within an individual REST service method, as shown in the following example, it enables REST servers the flexibility to support both behaviors side by side.

getUnquotedString(text: String): String updating;
begin
    encodeResponseString := false;
    return text;
end;

2025.0.01 and higher