getObjectOrNull

fun getObjectOrNull(k: String): JSONObject?

Get a JSONObject associated with requested key, or null if no such key exists.

Return

The JSONObject associated with requested key, or null if no such key exists.

Parameters

k

The key.

Throws

If the value associated with the requested key is not a JSONObject.