GetJsonAttribute

This method returns the JSON attribute.
Syntax
METHOD GetJsonAttribute : HRESULT
VAR_INPUT
sJsonAttribute : REFERENCE TO STRING;
nJsonAttribute : UDINT;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
sJsonAttribute | REFERENCE TO STRING | Reference to a variable of the type String |
nJsonAttribute | UDINT | Length of the String variable |
Return value
Name | Type | Description |
---|---|---|
GetJsonAttribute | HRESULT | Returns S_OK if the method call was successful. Returns ERROR_BAD_LENGTH if the length of the variable is too small. Otherwise HRESULT is returned as the error code. |