AddArrayMember
![AddArrayMember 1:](Images/jpg/13432123147__Web.jpg)
This method adds an array member to a JSON object.
Syntax
METHOD AddArrayMember : SJsonValue
VAR_INPUT
v : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
member : STRING;
END_VAR
VAR_INPUT
reserve : UDINT;
END_VAR
Return value
Name | Type |
---|---|
AddArrayMember | SJsonValue |
Inputs
Name | Type |
---|---|
v | SJsonValue |
reserve | UDINT |
/
Inputs/Outputs
Name | Type |
---|---|
member | STRING |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonArray := fbJson.AddArrayMember(jsonDoc, 'TestArray', 0);