@JsonWrapped

401 views
Skip to first unread message

Kenneth

unread,
Nov 19, 2013, 8:40:56 AM11/19/13
to jackso...@googlegroups.com
http://jira.codehaus.org/browse/JACKSON-781 Is this issue abandoned?  Any alternative ways to solve the same problem?

I wanna do someting like this...

From model:
public class SomeModel {
  @JsonWrapped(prefix="someWrapper")
  private String someString;

  @JsonWrapped(prefix="someWrapper")
  private String someOtherString;

  // ...
}

Wanted json:
{
    "someWrapper": {
        "someString": "blah",
        "someOtherString": "blip"
    }
}

Tatu Saloranta

unread,
Nov 22, 2013, 5:45:57 PM11/22/13
to jackso...@googlegroups.com
Abandoned would mean that someone was working on it.
I am not aware of anyone working or having worked on this.

Semantics aside...
Although implementation of @JsonUnwrapped is so hairy that I actually regret ever having added support for it (really, I'd rather rip it out, it's that bad), the other direction could be bit easier. So if anyone wants to work on this, it should be possible to actually implement.

-+ Tatu +-



--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To post to this group, send email to jackso...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages