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 (note possible invalidity)

GetArrayValueByIdx 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

idx

UDINT

Sample call:

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