Package: org.apache.groovy.xml.util

## [Java] Class JacksonHelper

- org.apache.groovy.xml.util.JacksonHelper

-     public class JacksonHelper
      extends Object

  Internal helper for optional Jackson databinding support. Uses reflection to avoid a compile-time dependency on jackson-databind.

  Since:
    6.0.0

- - ### Methods Summary

    Methods
    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.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### <T> public static T convertMapToType(Map<String, Object> map, Class<T> type)

      Converts a Map to a typed object using Jackson's ObjectMapper.convertValue. Requires jackson-databind on the classpath.

      throws:
        XmlRuntimeException if jackson-databind is not available or conversion fails
      Parameters:
        `map` - the source map
        `type` - the target type
      Type Parameters:
        `T` - the target type
      Returns:
        the converted object