AddDoubleMember

AddDoubleMember 1:

This method adds a Double member to a JSON object.

Syntax

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

AddDoubleMember 2: Return value

Name

Type

AddDoubleMember

SJsonValue (note possible invalidity)

AddDoubleMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

LREAL

AddDoubleMember 4:/AddDoubleMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddDoubleMember(jsonDoc, 'TestDouble', 42.42);