So ordnen Sie POJO mehreren JSON-Präsentationen zu

Wie ordne ich POJO mehreren JSON-Präsentationen zu?

ich benutzeJackson.

Ich möchte so etwas wie Code unten

@JsonIgnorePropertiesStreamA({ "value2" })
@JsonIgnorePropertiesOtherWay({ "value3" })
public class Value {
  public int value;
  public int value2;
  public int value3;
}

Wie geht das mit Jackson? oder Welche anderen Bibliotheken könnten das tun?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage