kotlinx-serialization / kotlinx.serialization.json / long

long

(common, js, jvm, native) val JsonElement.long: Long

Convenience method, returns content of current element as Long

Exceptions

JsonException - if current element is not a JsonPrimitive

NumberFormatException - if current element is JsonPrimitive but it is not a valid representation of number