Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCJSon Home
|
FCJSon Function List
GetType()
GetType()
Purpose:
-
FCJSon::GetType() returns the datatype of a json object
Usage:
-
-
atype = FCJSon::GetType(<jsonident> [, <key>]);
Arguments:
-
integer <jsonident> - A valid json object ident.
-
alpha <key> - Optional. If used, key to an item in the object identified
by <jsonident>.
Returns:
-
alpha <aval> - An alpha representation of the object's datatype.
Possible returns are:
-
"array" -
Object is an array
-
"bool" -
Object is a boolean
-
"double" -
Object is a double
-
"int" -
Object is an integer
-
"object" -
Object is json object made up of <key>:<value> pairs
-
"string" -
Object is a string
-
"null" -
The object exists but has no value
-
"" -
Error - check sys_ret, sys.get_extfnopt("FCJSon","LastError"), and
sys.get_extfnopt("FCJSon","LastMessage");
Where Used:
-
FCJSon::GetType() can be called from anywhere.
Example:
-
Example
Description:
-
FCJSon::GetType() returns the datatype of a json object.
Bugs/Features/Comments:
-
See Also:
-
FCJSon Function List
Back to Top