getPropertyAsListOf

abstract fun <T> getPropertyAsListOf(property: String, type: Class<T>): List<T>

If this JSON value is a JSON object, gets the value of a given property as a list of elements of a given type. If this JSON value is not a JSON object or if this JSON object has no property with the given name, then this method returns null. If the conversion of the given property is not possible (see getValueAsListOf), this method returns null.

Return

a List of objects of class <T> representing the property named property of this JSON object

Parameters

property

The name of the property of this JSON object to convert

type

The Class object associated to the <T> type

<T>

The Java or POJO type to convert the elements of the property of this JSON object to