MemberEnd
This method returns the last child element below a JSON property and can be used by a JSON property together with the methods MemberBegin() and NextMember() for iteration.
Syntax
METHOD MemberEnd : SJsonIterator
VAR_INPUT
v : SJsonValue;
END_VAR
Return value
Name | Type |
---|---|
MemberEnd | SJsonIterator |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonIterator := fbJson.MemberBegin(jsonDoc);
jsonIteratorEnd := fbJson.MemberEnd(jsonDoc);
WHILE jsonIterator <> jsonIteratorEnd DO
sName := fbJson.GetMemberName(jsonIterator);
jsonIterator := fbJson.NextMember(jsonIterator);
END_WHILE