api / tv.twelvetone.json / JsonArray / asArray

asArray

fun asArray(): JsonArray

Overrides JsonValue.asArray

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

Exceptions

UnsupportedOperationException - if this value is not a JSON array

Return
a JSONArray for this value