AddStringMember

AddStringMember 1:

This method adds a String member to a JSON object.

Syntax

METHOD AddStringMember : SJsonValue
VAR_INPUT
  v      : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
  member : STRING;
  value  : STRING;
END_VAR

AddStringMember 2: Return value

Name

Type

AddStringMember

SJsonValue (note possible invalidity)

AddStringMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

AddStringMember 4:/AddStringMember 5: Inputs/outputs

Name

Type

member

STRING

value

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddStringMember(jsonDoc, 'TestString', 'Test');