PushbackJsonValue
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 (note possible invalidity) |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
/ Inputs/outputs
Name | Type |
---|---|
rawJson | STRING |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonArray := fbJson.FindMember(jsonDoc, 'array');
jsonValue := fbJson.PushbackJsonValue(jsonArray, sJson);