PushbackCopyValue
This method adds a JSON document from the memory of a FB_JsonDomParser to the end of an array.
Syntax
METHOD PushbackCopyValue : SJsonValue
VAR_INPUT
v : SJsonValue;
json : SJsonValue;
END_VAR
Return value
Name | Type |
---|---|
PushbackCopyValue | SjsonValue (note possible invalidity) |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
json | SJsonValue (note possible invalidity) |
Sample call:
jsonCopy:=fbJsonCreate.NewDocument();
fbJsonCreate.AddIntMember(jsonCopy,'a',1);
fbJsonCreate.AddIntMember(jsonCopy,'b',2);
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonArray := fbJson.FindMember(jsonDoc, 'array');
jsonValue := fbJson.PushbackCopyValue(jsonArray, jsonCopy);