string

fun JsonObject.string(key: String): String?

Unlike JsonObject.get followed by asString and friends, these return null for an absent key instead of throwing.


fun JsonArray.string(index: Int): String?