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.
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.
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.
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.
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.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.