![Java Gson exclude fields using @Expose annotation](https://simplesolution.dev/images/java-gson-exclude-fields-using-expose-annotation.png)
Java Gson exclude fields using @Expose annotation
In this Java Gson tutorial we learn how to exclude fields during serialization or deserialize JSON to exclude fields based on @Expose annotation. Via step by step tutorial we will show you how to use the GsonBuilder.excludeFieldsWithoutExposeAnnotation() method to configure Gson to exclude fields without @Expose annotation.