api / tv.twelvetone.json / JsonValue / asString

asString

open fun asString(): String

Returns this JSON value as String, assuming that this value represents a JSON string. If this is not the case, an exception is thrown.

Exceptions

UnsupportedOperationException - if this value is not a JSON string

Return
the string represented by this value