SetArray

SetArray 1:

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

SetArray 2: Return value

Name

Type

SetArray

SJsonValue (note possible invalidity)

SetArray 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp  := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.SetArray(jsonProp);