RemoveMemberByName

RemoveMemberByName 1:

This method removes a child element from a given property. The element is referenced by its name.

Syntax

METHOD RemoveMemberByName : BOOL
VAR_INPUT
  v         : SJsonValue;
  keepOrder : BOOL;
END_VAR
VAR_IN_OUT CONSTANT
    member  : STRING;
END_VAR

RemoveMemberByName 2: Return value

Name

Type

RemoveMemberByName

BOOL

RemoveMemberByName 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

keepOrder

BOOL

RemoveMemberByName 4:/RemoveMemberByName 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonDoc   := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp  := fbJson.FindMember(jsonDoc, 'property');
jsonValue := fbJson.RemoveMemberByName(jsonProp, 'ChildName');