Serialize

Native Pascal, workflow preparation

Description

Serialises the value to compact JSON text with no insignificant whitespace. null, booleans and numbers emit their stored text; strings are quoted with quotes, backslashes and control characters escaped; containers emit their children comma-separated, with object names quoted and followed by a colon.

Unpaired surrogates are replaced with the replacement-character escape and surrogate pairs are written as two hexadecimal escapes, so the output stays valid JSON text.

Syntax

Delphi

Function TPLWorkflowJSON.Serialize: WideString;

Return values

WideStringThe compact JSON representation of the value

Remarks

Use SerializeFormatted when indented, sortable output is needed; Serialize never inserts line breaks.

See also

WorkflowDataTools, ProbeWorkflowRequest