AddObjectMember

AddObjectMember 1:

This method adds an Object member to a JSON object.

Syntax

METHOD AddObjectMember : SJsonValue
VAR_INPUT
 v       : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
  member : STRING;
END_VAR

AddObjectMember 2: Return value

Name

Type

AddObjectMember

SJsonValue (note possible invalidity)

AddObjectMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

AddObjectMember 4:/AddObjectMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddObjectMember(jsonDoc, 'TestObject');