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