Skip to content

serialize plain object to multi-level json (@JsonWrap[ped]) #28

@ghost

Description

public class Member{
    private String id;
    @JsonProperty("User.name")
    private String name;
    @JsonProperty("User.age")
    private Integer age;
}

I expect the serialization is

{
  "id":null,
   "User":{
        "name":null,
        "age": null
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions