SetFormatOptions

This method is used to customize the general formatting options for an instance of the FB_JsonSaxPrettyWriter. In addition to the default configuration, there is also the possibility that no line breaks are generated within an array. The array is then output in one line despite the inserted indentations.
Syntax
METHOD SetFormatOptions : HRESULT
VAR_INPUT
options : EJsonPrettyFormatOptions;
END_VAR
TYPE EJsonPrettyFormatOptions:
(
eFormatDefault :=0,
eFormatSingleLineArray:=1
) DINT;
Return value
Name | Type |
---|---|
SetFormatOptions | HRESULT |
Inputs
Name | Type |
---|---|
options | EJsonPrettyFormatOptions |
Sample call:
fbJson.SetFormatOptions(EJsonPrettyFormatOptions.eFormatSingleLineArray);