Skip to content

JacksonRelease1.5

GitHubsberg edited this page Feb 25, 2015 · 1 revision

Jackson Release: 1.5 "Types R Us"

(but funny guys call me "Jackson Five"!)

Jackson 1.5 was released on March 14th 2010.

It is classified as a "minor" update over 1.4, since it will be mostly backwards compatible (hence not a "major" version bump), but will introduce new features (hence not a "patch" release).

Main focus of this release will is on implementing the number one user requested feature: Polymorphic type handling. That is, ability to embed exact type information in JSON, to allow for binding back to exact types, even if static type information does not indicate those types. This is important for some use cases, and especially with loosely typed Collections.

Following is the list of functionality that has been implemented for this release.

Implemented features

Implemented: major

  • JACKSON-91: Polymorphic type handling (aka "Polymorphic deserialization"):
  • Can now handle polymorphic subtypes safely, reliably, and without any code (just annotations or global enabling).
  • Enabled using @JsonTypeInfo (see JacksonAnnotations) on base class; or ObjectMapper.enableDefaultTyping() to enable addition of type info for wide class of types.
  • JACKSON-195: Add methods to ObjectMapper to allow specification of root object type. Implemented by new ObjectWriter abstraction, which also supports better way to define JSON View to use for serialization.
  • JSONP (json-p) support:
  • JACKSON-234: underlying JSONP wrapper object, handling)
  • JACKSON-245: configuration option for JAX-RS provider for convenience
  • JACKSON-244: configurability of auto-detection visibility; allows, for example, auto-detect private fields without annotations (@JsonAutoDetect (getterVisibility=Visibility.ANY) or equivalent global setting using VisibilityChecker)

Implemented: minor

Deferred

Features that were considered, but postponed for following releases:

  • JACKSON-235: Handle bi-directional references using declarative method(s) ("make things work with Hibernate", SQL depedencies)

CategoryJackson

Clone this wiki locally