FindMember

FindMember 1:

This method searches for a specific property in a JSON document and returns it. 0 is returned if no corresponding property is found.

Syntax

METHOD FindMember : SJsonValue
VAR_INPUT
  v      : SJsonValue;
END_VAR
VAR_IN_OUT CONSTANT
  member : STRING;
END_VAR

FindMember 2: Return value

Name

Type

FindMember

SJsonValue (note possible invalidity)

FindMember 3: Inputs

Name

Type

v

SJsonValue (note possible invalidity)

FindMember 4:/FindMember 5: Inputs/outputs

Name

Type

member

STRING

Sample call:

jsonProp := fbJson.FindMember(jsonDoc, 'PropertyName');