With GSON we can do @SerializedName(value="data", alternate={"variations", "products"}) @Expose private Data data; How to implement the same with @JsonKey(name: "location")