-
org.apache.wink.json4j.JSONObject.optDouble()
Utility method to obtain the specified key as a 'double' value Only values of Number will be converted to double. all other values will return Double.NaN. Provided for compatibility to other JSON models.
@param key The key to look up.
@return A double value if the value stored for key is an instance of Number.
-
org.codehaus.jettison.json.JSONObject.optDouble()
Get an optional double associated with a key, or NaN 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 a number.
@param key A string which is the key.
@return An object which is the value.
-
org.json.JSONArray.optDouble()
Get the optional double value associated with an index. NaN is returned if there is no value for the index, or if the value is not a number and cannot be converted to a number.
@param index The index must be between 0 and length() - 1.
@return The value.
-
org.json.JSONObject.optDouble()
Get an optional double associated with a key, or NaN 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 a number.
@param key A string which is the key.
@return An object which is the value.
-
org.richfaces.json.JSONArray.optDouble()
Get the optional double value associated with an index. NaN is returned if there is no value for the index, or if the value is not a number and cannot be converted to a number.
@param index The index must be between 0 and length() - 1.
@return The value.