PushbackIntValue

PushbackIntValue 1:

This method appends a value of the data type INT to the end of an array.

Syntax

METHOD PushbackIntValue : SJsonValue
VAR_INPUT
  v     : SJsonValue;
  value : DINT;
END_VAR

PushbackIntValue 2: Return value

Name

Type

PushbackIntValue

SJsonValue (note possible invalidity)

PushbackIntValue 3: Inputs

Name

Type

v

sJsonValue (note possible invalidity)

value

DINT

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonArray := fbJson.FindMember(jsonDoc, 'array');
jsonValue := fbJson.PushbackIntValue(jsonArray, 42);