getNumber

fun getNumber(k: String): JSONNumber

Get a JSONNumber associated with requested key.

Return

The JSONNumber 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 JSONNumber.