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

Add @JsonWrapped (to complement @JsonUnwrapped)

    Details

    • Type: Improvement Improvement
    • Status: In Progress In Progress
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      @JsonUnwrapped allows people who want a more compressed JSON hierarchy than their POJO to affect the process, but there is no option for the reverse. I have a REST service producing unnecessary additional layers of abstraction that i would like to exclude from my Java POJOs rather than writing all sorts of unseemly wrapper classes.

        Activity

        Hide
        Tatu Saloranta added a comment -

        fixed name of annotations

        Show
        Tatu Saloranta added a comment - fixed name of annotations
        Hide
        Tatu Saloranta added a comment -

        Sounds reasonable. Will be considered for 2.1, as 2.0 feature set is closed.

        Show
        Tatu Saloranta added a comment - Sounds reasonable. Will be considered for 2.1, as 2.0 feature set is closed.
        Hide
        Tatu Saloranta added a comment -

        Ah. Forgot to verify this had not been reported – there was already JACKSON-482, with some more notes. Closed it to keep just one entry, but might make sense to copy additional suggestions from there, regarding possible ways to denote expected wrapping to use for JSON representation.

        Show
        Tatu Saloranta added a comment - Ah. Forgot to verify this had not been reported – there was already JACKSON-482 , with some more notes. Closed it to keep just one entry, but might make sense to copy additional suggestions from there, regarding possible ways to denote expected wrapping to use for JSON representation.

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Brian Mulholland
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: