getObjectOrNull

fun getObjectOrNull(index: Int): JSONObject?

Get a JSONObject or null at the requested subscript.

Return

The JSONObject 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 JSONValue.