GetJsonAttribute

GetJsonAttribute 1:

This method returns the JSON attribute.

Syntax

METHOD GetJsonAttribute : HRESULT
VAR_INPUT
    sJsonAttribute : REFERENCE TO STRING;
    nJsonAttribute : UDINT;
END_VAR

GetJsonAttribute 2: Inputs

Name

Type

Description

sJsonAttribute 

REFERENCE TO STRING

Reference to a variable of the type String

nJsonAttribute 

UDINT

Length of the String variable

GetJsonAttribute 3: 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.