TsgcWSPServer_DatasetProperties › AutoEscapeText

AutoEscapeText Property

Escape special JSON characters in text fields before they are placed in the envelope.

Syntax

property AutoEscapeText: Boolean read FAutoEscapeText write FAutoEscapeText;

Default Value

Remarks

When True, quote, backslash and control characters in string and memo fields are escaped before the row is serialised, producing JSON that is always safe to re-parse regardless of the content. When False (the default) the values are copied verbatim, which is faster and adequate when the source dataset is known to be ASCII-clean. Enable this property when rows may contain arbitrary user text.

Example

oProtocol.AutoEscapeText := True;

Back to Properties