get Array
fun getArray(k: String, orElse: () -> JSONArray = { throw NullPointerException() }): JSONArray
Content copied to clipboard
Get a JSONArray associated with requested key.
Return
The JSONArray associated with requested key.
Parameters
k
The key.
or Else
An optional function to run if k was not found. If not present, a NullPointerException is thrown if k was not found.
Throws
If the requested key is not present and orElse was omitted.
If the value associated with the requested key is not a JSONArray.