RemoveAllMembers

RemoveAllMembers 1:

This method removes all child elements from a given property.

Syntax

METHOD RemoveAllMembers : BOOL
VAR_INPUT
  v : SJsonValue;
END_VAR

RemoveAllMembers 2: Return value

Name

Type

RemoveAllMembers

BOOL

RemoveAllMembers 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

Sample call:

jsonDoc  := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
bRemoved := fbJson.RemoveAllMembers(jsonProp);