GetArrayValueByIdx

GetArrayValueByIdx 1:

This method returns the value of an array in a specified index.

Syntax

METHOD GetArrayValueByIdx : SJsonValue
VAR_INPUT
  v   : SJsonValue;
  idx : UDINT;
END_VAR

GetArrayValueByIdx 2: Return value

Name

Type

GetArrayValueByIdx

SJsonValue

GetArrayValueByIdx 3: Inputs

Name

Type

v

SJsonValue

idx

UDINT

Sample call:

jsonValue := fbJson.GetArrayValueByIdx(jsonArray, 1);