GetArrayValueByIdx
![GetArrayValueByIdx 1:](Images/jpg/13439171467__Web.jpg)
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 |
Inputs
Name | Type |
---|---|
v | SJsonValue |
idx | UDINT |
Sample call:
jsonValue := fbJson.GetArrayValueByIdx(jsonArray, 1);