I have a field in the object:
@SerializedName("CommentPhotoes") @Expose(serialize = false) private ArrayList<CommentPhoto> commentPhotos; I need to parse this field when I read this object from a string, but when I serialize it back into a string, this field should not go there.
The problem is that when you serialize an object, this field is also serialized. What has the same applies to deserialization.
What could be the problem, can I misuse these annotations?