AddDateTimeMember

AddDateTimeMember 1:

This method adds a DateTime member to a JSON object.

Syntax

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

AddDateTimeMember 2: Return value

Name

Type

AddDateTimeMember

SJsonValue (note possible invalidity)

AddDateTimeMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

DATE_AND_TIME

AddDateTimeMember 4:/AddDateTimeMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddDateTimeMember(jsonDoc, 'TestDateTime', DT#2018-11-22-12:12);