JSONArray
Parameters
The array of JSONDatas. This must not be modified by the caller afterward; this call transfers ownership of the reference.
Types
Functions
Get a JSONArray or null at the requested subscript.
Get a BigDecimal at the requested subscript.
Get a BigDecimal or null at the requested subscript.
Get a BigInteger at the requested subscript.
Get a BigInteger or null at the requested subscript.
Get a Boolean at the requested subscript.
Get a Boolean or null at the requested subscript.
Get a Int or null at the requested subscript.
Get a Long or null at the requested subscript.
Get a JSONNumber at the requested subscript.
Get a JSONNumber or null at the requested subscript.
Get a JSONObject at the requested subscript.
Get a JSONObject or null at the requested subscript.
Get a String or null at the requested subscript.
Properties
If this is a JSONNumber, extract its value as a BigDecimal, otherwise throw a ClassCastException.
Extract a List of BigDecimal, throwing a ClassCastException if any elements are non-numeric.
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 List of BigInteger, throwing a ClassCastException if any elements are non-numeric, or an ArithmeticException if any elements are non-integral. The first element to fail determines which exception is thrown.
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.
Extract a List of Ints, throwing a ClassCastException if any elements are non-numeric, or an ArithmeticException if any elements are non-integral or overflow an Int. The first element to fail determines which exception is thrown.
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 List of Longs, throwing a ClassCastException if any elements are non-numeric, or an ArithmeticException if any elements are non-integral or overflow a Long. The first element to fail determines which exception is thrown.
Extract a String, or throw a ClassCastException if the value is not a string.