AddNullMember

AddNullMember 1:

This method adds a NULL member to a JSON object.

Syntax

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

AddNullMember 2: Return value

Name

Type

AddNullMember

SJsonValue (note possible invalidity)

AddNullMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

AddNullMember 4:/AddNullMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonMem := fbJson.AddNullMember(jsonDoc, 'TestJson');