AddIntMember

AddIntMember 1:

This method adds an Int member to a JSON object.

Syntax

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

AddIntMember 2: Return value

Name

Type

AddIntMember

SJsonValue (note possible invalidity)

AddIntMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

value

DINT

AddIntMember 4:/AddIntMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddIntMember(jsonDoc, 'TestInt', 42);