Try using the benefits of getter function
public String getTitle() {
return Title.trim();
}
as same with others as well. try to use this, if this will not help let m know in the comment, we'll find another solution
I tried this but this fixes only for values but not for key.
Also i tried this way too. public String getPoster() { return Poster == null ? Uri.parse("R.drawable.ic_launcher_background").toString() : Poster.trim(); }
In the above json structure, first contains no poster field, second contains "Poster" field and third contains "Poster " fields. Third has white space but second and third Poster has url. But I can use only one Poster field.
I tried @Joop's solution but I am not able to use two fields at a time @SerializedName(value="Poster", alternate={"Poster ", "Poster"})