ExportFormValuesToJSON

Text, extraction

Description

Writes every form field as an object with name and value keys into a JSON array, escaping quotes, backslashes and control characters

Syntax

Delphi

Function ExportFormValuesToJSON(IncludeEmpty: Integer): WideString;

Parameters

IncludeEmpty1 keeps fields whose value is blank, 0 skips them

Return value

The JSON array, or an empty string when no document is selected

Remarks

Non-ASCII characters are emitted as \uXXXX escapes so the output is valid JSON in any encoding

See also

GetFormValues, ExportFormDataToFDF