PushbackJsonValue

PushbackJsonValue 1:

This method appends a JSON document that exists as a STRING in the PLC to the end of an array.

Syntax

METHOD PushbackJsonValue : SJsonValue
VAR_INPUT
  v       : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
  rawJson : STRING;
END_VAR

PushbackJsonValue 2: Return value

Name

Type

PushbackJsonValue

SJsonValue (note possible invalidity)

PushbackJsonValue 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

PushbackJsonValue 4:/PushbackJsonValue 5: Inputs/outputs

Name

Type

rawJson

STRING

Sample call:

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