GetType
This method returns the type of a property value. The return value can assume one of the values of the enum EJsonType.
Syntax
METHOD GetType : EJsonType
VAR_INPUT
v : SJsonValue
END_VAR
TYPE EJsonType :
(
eNullType := 0,
eFalseType := 1,
eTrueType := 2,
eObjectType := 3,
eArrayType := 4,
eStringType := 5,
eNumberType := 6
) DINT;
Return value
Name | Type |
---|---|
GetType | EJsonType |
Inputs
Name | Type |
---|---|
v | SJsonValue (note possible invalidity) |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
eJsonType := fbJson.GetType(jsonProp);