Jackson JSON Processor
  1. Jackson JSON Processor
  2. JACKSON-153

Improve handling of @JsonCreator to support Map types

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      (based on Chris Pimlott's email on user list)

      Currently @JsonCreator annotation is only used with "regular" (non-Collection/Enum/Map) types.
      But it would be useful to allow it to be also be used with Map types; for example, to 'configure' Map type based on one or more non-entry types.

        Activity

        Hide
        Tatu Saloranta added a comment -

        Realized that name-based configuration that @JsonCreator offers is not a good match for containers (which would need index-based approach), editing to only cover Map types.

        Show
        Tatu Saloranta added a comment - Realized that name-based configuration that @JsonCreator offers is not a good match for containers (which would need index-based approach), editing to only cover Map types.
        Hide
        Tatu Saloranta added a comment -

        Implemented for maps now too.

        Show
        Tatu Saloranta added a comment - Implemented for maps now too.
        Hide
        Tatu Saloranta added a comment -

        Included in 1.3.0.

        Show
        Tatu Saloranta added a comment - Included in 1.3.0.

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Tatu Saloranta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: