SetFormatOptions

SetFormatOptions 1:

Diese Methode wird verwendet, um die allgemeinen Formatierungsoptionen für eine Instanz des FB_JsonSaxPrettyWriter anzupassen. Zusätzlich zu der Standardkonfiguration gibt es noch die Möglichkeit, dass innerhalb eines Arrays keine Zeilenumbrüche erzeugt werden. Das Array wird dann trotz der eingefügten Einrückungen in einer Zeile ausgegeben.

Syntax

METHOD SetFormatOptions : HRESULT
VAR_INPUT
  options               : EJsonPrettyFormatOptions;
END_VAR
TYPE EJsonPrettyFormatOptions:
(
  eFormatDefault        :=0,
  eFormatSingleLineArray:=1
) DINT;

SetFormatOptions 2: Rückgabewert

Name

Typ

SetFormatOptions

HRESULT

SetFormatOptions 3: Eingänge

Name

Typ

options

EJsonPrettyFormatOptions

Beispielaufruf:

fbJson.SetFormatOptions(EJsonPrettyFormatOptions.eFormatSingleLineArray);