public class JacksonHelper
extends Object
Internal helper for optional Jackson databinding support. Uses reflection to avoid a compile-time dependency on jackson-databind.
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
public static T |
convertMapToType(Map<String, Object> map, Class<T> type)Converts a Map to a typed object using Jackson's ObjectMapper.convertValue. |
Converts a Map to a typed object using Jackson's ObjectMapper.convertValue. Requires jackson-databind on the classpath.
map - the source maptype - the target typeT - the target type