GetArrayValueByIdx
This method returns the value of an array in a specified index.
Syntax
METHOD GetArrayValueByIdx : SJsonValue
VAR_INPUT
v : SJsonValue;
idx : UDINT;
END_VAR
Return value
Name | Type |
---|---|
GetArrayValueByIdx | SJsonValue (note possible invalidity) |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
idx | UDINT |
Sample call:
jsonValue := fbJson.GetArrayValueByIdx(jsonArray, 1);