jackson-module-scala does not always properly handle deserialization of Options or Collections wrapping
Scala primitives (eg Int, Long, Boolean).
jackson-module-scala does not always properly handle deserialization of Options or Collections wrapping
Scala primitives (eg Int, Long, Boolean).
This function is experimental and may be removed or significantly reworked in a later release.
These issues can be worked around by adding Jackson annotations on the affected fields.
This function is designed to be used when it is not possible to apply Jackson annotations.
Attributes
clazz
the (case) class
fieldName
the field name in the (case) class
Returns:
the referenced type of the field - for Option[Long] - the referenced type is Long
jackson-module-scala does not always properly handle deserialization of Options or Collections wrapping
Scala primitives (eg Int, Long, Boolean).
jackson-module-scala does not always properly handle deserialization of Options or Collections wrapping
Scala primitives (eg Int, Long, Boolean).
This function is experimental and may be removed or significantly reworked in a later release.
These issues can be worked around by adding Jackson annotations on the affected fields.
This function is designed to be used when it is not possible to apply Jackson annotations.
Attributes
clazz
the (case) class
fieldName
the field name in the (case) class
referencedType
the referenced type of the field - for Option[Long] - the referenced type is Long
Resize the descriptorCache. The default size is 100.
Resize the descriptorCache. The default size is 100.
Note that this clears the existing cache entries. It is best to set this up before you start using
the Jackson Scala Module for serializing/deserializing.
Replaces the LookupCacheFactory. The default factory uses za.co.absa.shaded.jackson.databind.util.LRUMap.
Replaces the LookupCacheFactory. The default factory uses za.co.absa.shaded.jackson.databind.util.LRUMap.
Note that this clears the existing cache entries. It is best to set this up before you start using
the Jackson Scala Module for serializing/deserializing.
Resize the scalaTypeCache. The default size is 1000.
Resize the scalaTypeCache. The default size is 1000.
Note that this clears the existing cache entries. It is best to set this up before you start using
the Jackson Scala Module for serializing/deserializing.