GetDocument
This method returns the content of the JSON object that is currently created with the SAX Writer and returns it as data type STRING(255).
The maximum size of the string returned by the method is 255 characters. With longer strings, the method will return a NULL string. In this case the method CopyDocument() must be used.
Syntax
METHOD GetDocument : STRING(255)
VAR_OUTPUT
hrErrorCode: HRESULT;
END_VAR
Return value
Name | Type |
---|---|
GetDocument | STRING(255) |
Outputs
Name | Type |
---|---|
hrErrorCode | HRESULT |
Sample call:
sTargetString := fbJson.GetDocument();