ns=2;s=DEPRAG Smart/Local/FileAndDirectoryAccess/Json/ActiveJsonDocuments/0/IsArrayValue
The command checks whether the value of the specified element contains an array.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bJsonIsArrayValue : BOOL;
OutputDataJsonIsArrayValue : ST_BoolOutputData;
hrJsonIsArrayValue : HRESULT;
fbJson : FB_Json;
END_VAR
hrJsonIsArrayValue := fbJson.IsArrayValue(
bExecute := bJsonIsArrayValue,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
MemberPath := 'Data.Array',
ClientId := '0',
OutputData => OutputDataJsonIsArrayValue);
IF hrJsonIsArrayValue <> S_FALSE THEN
bJsonIsArrayValue := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".