getNumberOrNull

fun getNumberOrNull(index: Int): JSONNumber?

Get a JSONNumber or null at the requested subscript.

Return

The JSONNumber at the requested subscript.

Parameters

index

The array subscript.

Throws

If the subscript is out of bounds.

If the element at the requested subscript is not a JSONNumber.