GetDocumentLength

This method returns the length of the JSON object that is currently created with the SAX Writer and returns it as data type UDINT.
Syntax
METHOD GetDocumentLength : UDINT
VAR_OUTPUT
  hrErrorCode: HRESULT;
END_VAR
 Return value
Name  | Type  | 
|---|---|
GetDocumentLength  | UDINT  | 
 Outputs
Name  | Type  | 
|---|---|
hrErrorCode  | HRESULT  | 
Sample call:
nLength := fbJson.GetDocumentLength();