Question: gson how to ignore field?
Answer: 1. Gson @Expose annotation. @Expose marks certain fields of the objects to be excluded, by default, for consideration for serialization and deserialization to JSON. It means that Gson will exclude all fields in a class that are not marked with @Expose annotation.