Availability
$WBJSONLEN is available for use with all WBSP commands.
Syntax
$WBJSONLEN{JSONSource|JSONArrayName}
$WBJSONLEN[JSONSource|JSONArrayName]
Parameters
JSONSource - String value containing JSON to be searched. Note that
this is not an URL of the JSON file but JSON source itself.
JSONArrayName - The name of the array. Do not use brackets
() or square brackets [] in array name. Note that JSON array
names are case sensitive.
Returns
Number of elements of JSONArrayName.
Example
File Sample.json
After running this example, the resulting page in browser should look like this: