AddDcTimeMember

AddDcTimeMember 1:

This method adds a DcTime member to a JSON object.

Syntax

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

AddDcTimeMember 2: Return value

Name

Type

AddDcTimeMember

SJsonValue (note possible invalidity)

AddDcTimeMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

DCTIME

AddDcTimeMember 4:/AddDcTimeMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddDcTimeMember(jsonDoc, 'TestDcTime', 1234);