How to map POJO to several JSON presentation?
I am using Jackson.
I want something like code below
@JsonIgnorePropertiesStreamA({ "value2" })
@JsonIgnorePropertiesOtherWay({ "value3" })
public class Value {
public int value;
public int value2;
public int value3;
}
How to do that with Jackson? or What other libraries could do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…