Jackson JSON Processor

Add code generation to allow deserialization into arbitrary Bean interfaces

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.6
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

In addition to binding to JDK standard containers (class, interface), primitives (wrappers, arrays) and Bean classes, it would be very useful to be able to code generate interface implementations.
This would allow for developers to only define Bean interface, without any code (which is generally repetitive monkey code anyway), and Jackson data binder would generate implementation class. This class could include efficient deserialization as well as serialization code (plus implement JsonSerializable by doing it).

The main benefit would be reduced work needed by developers for cases where bean is just a data container and has no functionality of its own.

Activity

Hide
Tatu Saloranta added a comment -

Preliminary code written by Sunny; need to get a place to store it in (Jackson sandbox?), so that we can hopefully get this fully integrated for 1.6.

Show
Tatu Saloranta added a comment - Preliminary code written by Sunny; need to get a place to store it in (Jackson sandbox?), so that we can hopefully get this fully integrated for 1.6.
Hide
Tatu Saloranta added a comment -

This will be one of key features for 1.6; code exists, just need to integrate.

Show
Tatu Saloranta added a comment - This will be one of key features for 1.6; code exists, just need to integrate.
Hide
Tatu Saloranta added a comment -

First basic version of this functionality has been implemented, and is now optional part of Jackson – as module called "mr bean" (and hence jar name "jackson-mrbean-VERSION.jar".
Will handle basic interfaces, add getters and/or setters.

Show
Tatu Saloranta added a comment - First basic version of this functionality has been implemented, and is now optional part of Jackson – as module called "mr bean" (and hence jar name "jackson-mrbean-VERSION.jar". Will handle basic interfaces, add getters and/or setters.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: