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

SetString 3: Inputs

Name

Type

v

SJsonValue

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');