You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I am missing something, but it appears that any elements that I've marked as JsonUnwrapped are actually wrapped in the resulting json. If I don't use JsonView, everything is as expected.
For example:
class User {
@JsonUnwrapped
private Name name;
...
}
class Name {
private String firstName = "John";
private String lastName = "Doe";
...
}
I would expect the resulting json to come back as:
{
firstName: "John",
lastName: "Doe"
}
But it is coming back as:
{
name: {
firstName: "John",
lastName: "Doe"
}
}
Maybe I am just missing something? I also tried annotating the getter instead; to no avail.
The text was updated successfully, but these errors were encountered:
Maybe I am missing something, but it appears that any elements that I've marked as JsonUnwrapped are actually wrapped in the resulting json. If I don't use JsonView, everything is as expected.
For example:
I would expect the resulting json to come back as:
But it is coming back as:
Maybe I am just missing something? I also tried annotating the getter instead; to no avail.
The text was updated successfully, but these errors were encountered: