PushbackBoolValue

PushbackBoolValue 1:

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

Syntax

METHOD PushbackBoolValue : SJsonValue
VAR_INPUT
  v     : SJsonValue;
  value : BOOL;
END_VAR

PushbackBoolValue 2: Return value

Name

Type

PushbackBoolValue

SJsonValue (note possible invalidity)

PushbackBoolValue 3: Inputs

Name

Type

v

sJsonValue (note possible invalidity)

value

BOOL

Sample call:

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