[Top]
Tools
Tools.JSON
Tools.JSON.JSONObject
|
Method Tools.JSON.JSONObject()->optInt()
- Method
optInt
-
int optInt(string key, int|void defaultValue)
- Description
-
Get an optional double associated with a key, or the
defaultValue if there is no such key or if its value is not a number.
If the value is a string, an attempt will be made to evaluate it as
number.
- Parameter key
-
A key string.
- Parameter defaultValue
-
The default value
- Returns
-
An int object value
|