SetArray
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 (note possible invalidity) |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetArray(jsonProp);