阅读背景:

在jackson json (Java)的扁平结构中序列化列表内容

来源:互联网 

The class I need to Serialize:

我需要序列化的类:

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class MyClass {

    @JsonProperty("CustomerId")
    private String customerId;

    @JsonProperty("Products")
    private List<ProductDetails> products;

    //Getters and setters
}
@J



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: