PushbackJsonValue
![PushbackJsonValue 1:](Images/jpg/13465134091__Web.jpg)
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
Return value
Name | Type |
---|---|
PushbackJsonValue | SJsonValue |
Inputs
Name | Type |
---|---|
v | SJsonValue |
/
Inputs/Outputs
Name | Type |
---|---|
rawJson | STRING |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonArray := fbJson.FindMember(jsonDoc, 'array');
jsonValue := fbJson.PushbackJsonValue(jsonArray, sJson);