getObjects

fun JsonObject.getObjects(name: String): List<JsonObject>

A convenience method to get all JsonObject within an attribute which is assumed to be a JsonArray.

Return

a list of JsonObjects, or an empty-list if the attribute is not found (or contains no JsonObjects).

Parameters

name

the attribute's name, whose value is assumed to be a JsonArray, where each item in the array is a JsonObject.