SetString

SetString 1:

This method sets the value of a property to a value of the data type STRING.

Syntax

METHOD SetString : SJsonValue
VAR_INPUT
  v     : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
  value : STRING;
END_VAR

SetString 2: Return value

Name

Type

SetString

SJsonValue (note possible invalidity)

SetString 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

SetString 4:/SetString 5: Inputs/outputs

Name

Type

value

STRING

Sample call:

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