GetArrayValue
![GetArrayValue 1:](Images/jpg/13439170955__Web.jpg)
This method returns the value at the current iterator position of an array.
Syntax
METHOD GetArrayValue : SJsonValue
VAR_INPUT
i : SJsonAIterator;
END_VAR
Return value
Name | Type |
---|---|
GetArrayValue | SJsonValue |
Inputs
Name | Type |
---|---|
i | SJsonAIterator |
Sample call:
jsonIterator := fbJson.ArrayBegin(jsonArray);
jsonIteratorEnd := fbJson.ArrayEnd(jsonArray);
WHILE jsonIterator <> jsonIteratorEnd DO
sName := fbJson.GetArrayValue(jsonIterator);
jsonIterator := fbJson.NextArray(jsonIterator);
END_WHILE