我有一个POJO,它有一个字段:
public class Media {
private Asset asset;
}
Everything works perfectly when parsing a json response into this asset POJO. but however there is a slight difference with the key this asset comes with. It can either be:
@JsonProperty("cover_asset")
or
@JsonProperty("asset")
有没有办法注释POJO以识别这种情况并反序列化到同一字段.它们不可能同时出现在同一react 中.