Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCJSon Home
|
FCJSon Function List
GetArrayLen()
GetArrayLen()
Purpose:
-
FCJSon::GetArrayLen() returns the number of items in an array object
Usage:
-
-
nitems = FCJSon::GetArrayLen(<jsonident>);
Arguments:
-
integer <jsonident> - A valid json ident.
Returns:
-
>= 0 - The number of items in the array
-
-1 - Error
Where Used:
-
FCJSon::GetArrayLen() can be called from anywhere.
Example:
-
Example
Description:
-
FCJSon::GetArrayLen() returns the number of items in an array object.
A json array can have 0 items, so 0 is a valid return.
A negative return indicates an error which most likely means the jsoanident is
invalid or does not refer to an array object.
Bugs/Features/Comments:
-
See Also:
-
FCJSon Function List
Back to Top