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