getNumberOrNull

fun getNumberOrNull(k: String): JSONNumber?

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

Return

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