GetMemberName

GetMemberName 1:

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

GetMemberName 2: Return value

Name

Type

GetMemberName

STRING(255)

GetMemberName 3: 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