GetStringLength
![GetStringLength 1:](Images/jpg/13439418635__Web.jpg)
This method returns the length of a property if its value is a string.
Syntax
METHOD GetStringLength : UDINT
VAR_INPUT
v : SJsonValue
END_VAR
Return value
Name | Type |
---|---|
GetStringLength | UDINT |
Inputs
Name | Type |
---|---|
v | SJsonValue |
Sample call:
jsonDoc := fbJson.ParseDocument(sExistingJsonDocument);
jsonProp := fbJson.FindMember(jsonDoc, 'property');
nLen := fbJson.GetStringLength(jsonProp);