GetMemberName
This method returns the name of a JSON property member at the position of the current iterator, e.g. during the iteration of a child element of a JSON property with the methods MemberBegin(), MemberEnd() and NextMember().
Syntax
METHOD GetMemberName : STRING(255)
VAR_INPUT
i : SJsonIterator;
END_VAR
Return value
Name | Type |
---|---|
GetMemberName | STRING(255) |
Inputs
Name | Type |
---|---|
i | SJsonIterator |
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