array

Interprets given Json as JsonArray and returns list of Json values.

Throws

if JSON structure does not match expected type.


fun Json.array(key: String): List<Json>

Interprets given Json as JsonObject. Interprets value of given key as JsonArray. Returns list of Json values of the array.

Throws

if JSON structure does not match expected type