getObject

fun getObject(k: String): JSONObject

Get a JSONObject associated with requested key.

Return

The JSONObject associated with requested key.

Parameters

k

The key.

Throws

If the requested key is not present.

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