opt

open fun opt(@NonNull key: String): JsonValue

Returns the optional value in the map with the specified key. If the value is not in the map NULL will be returned instead null.

Return

the value of the mapping with the specified key, or NULL if no mapping for the specified key is found.

Parameters

key

the key.