SetArray
![SetArray 1:](Images/jpg/13465139595__Web.jpg)
This method sets the value of a property to the type "Array". New values can now be added to the array with the Pushback methods.
Syntax
METHOD SetArray : SJsonValue
VAR_INPUT
v : SJsonValue;
END_VAR
Return value
Name | Type |
---|---|
SetArray | SJsonValue |
Inputs
Name | Type |
---|---|
v | SJsonValue |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetArray(jsonProp);