get Array
fun getArray(index: Int, orElse: () -> JSONArray = {
throw NullPointerException(
"Value at index, $index, was `null` when trying to read an " +
"Array.")
}): JSONArray
Content copied to clipboard
Get a JSONArray at the requested subscript.
Return
The JSONArray at the requested subscript, or the result of applying orElse if the element was null.
Parameters
index
The array subscript.
or Else
An optional function to run if the element was null. If not present, a NullPointerException is thrown if the element was null.