toList

public static List<T> toList<T>(JsonNode jsonNode, Function<JsonNode, T> mapper)(source)

Converts a JsonNode to a List of Ts by applying the given mapper to each element of the json node.

Parameters

jsonNode

the json node to convert.

mapper

the mapper that is applied to each element of the json node.