convert

public static T convert<T>(JsonNode node, String key, Class<T> type, ObjectMapper objectMapper, Map<String, Function<JsonNode, ? extends Object>> converters)(source)

Converts a JsonNode to a T by applying the given mapper to the json node.

Return

the converted object.

Parameters

node

the json node to convert.

key

the key of the json node.

type

the type of the object to convert to.

objectMapper

the object mapper to use

converters

the custom converters to use

<T>

the type of the object to convert to.


public T convert<T>(JsonNode node, String key, Class<T> type, ObjectMapper objectMapper)(source)

Converts a JsonNode to a T by applying the given mapper to the json node.

Return

the converted object.

Parameters

node

the json node to convert.

key

the key of the json node.

type

the type of the object to convert to.

objectMapper

the object mapper to use.

<T>

the type of the object to convert to.