Functions
Properties
If this is a JSONNumber, extract its value as a BigDecimal, otherwise throw a ClassCastException.
If this is a JSONNumber, extract its value as a BigInteger, otherwise throw a ClassCastException. If the value has a non-zero fractional part, throw an ArithmeticException.
Extract a Boolean, or throw a ClassCastException if the value is not a boolean.
If this is a JSONNumber, extract its value as a Double, otherwise throw a ClassCastException.
If this is a JSONNumber, extract its value as a Float, otherwise throw a ClassCastException.
If this is a JSONNumber, extract its value as an Int, otherwise throw a ClassCastException. If the value has a non-zero fractional part or is out of range, throw an ArithmeticException.
If this is a JSONNumber, extract its value as a Long, otherwise throw a ClassCastException. If the value has a non-zero fractional part or is out of range, throw an ArithmeticException.
Extract a String, or throw a ClassCastException if the value is not a string.