TsgcWSPServer_Dataset › Properties › AutoEscapeText
Escape special JSON characters in text fields before they are placed in the envelope.
property AutoEscapeText: Boolean read FAutoEscapeText write FAutoEscapeText;
—
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.
oProtocol.AutoEscapeText := True;