Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCJSon Home
|
FCJSon Function List
HasKey()
HasKey()
Purpose:
-
FCJSon::HasKey() returns an integer indicating whether an FCJSon object
has an item with a specific key.
Usage:
-
-
rc = FCJSon::HasKey(<jsonident>,<key>);
Arguments:
-
integer <jsonident> - A valid json object identifier
-
alpha <key> - The key to check for
Returns:
-
0 - Key does not exist
-
1 - Key does exist
-
-1 - Error
Where Used:
-
FCJSon::HasKey() can be called from anywhere.
Example:
-
Example
Description:
-
FCJSon::HasKey() returns an integer indicating whether an FCJSon object
has an item with a specific key.
The object in the array being checked must be a JSon object of
<key>:<value> pairs.
Bugs/Features/Comments:
-
See Also:
-
FCJSon Function List
Back to Top