- create
Creates a Gson instance based on the current configuration. This method is free
of side-effects to t
- <init>
Creates a GsonBuilder instance that can be used to build Gson with various
configuration settings. G
- registerTypeAdapter
Configures Gson for custom serialization or deserialization. This method
combines the registration o
- setPrettyPrinting
Configures Gson to output Json that fits in a page for pretty printing. This
option only affects Jso
- serializeNulls
Configure Gson to serialize null fields. By default, Gson omits all fields that
are null during seri
- disableHtmlEscaping
By default, Gson escapes HTML characters such as < > etc. Use this option to
configure Gson to pass-
- setDateFormat
Configures Gson to serialize Date objects according to the pattern provided. You
can call this metho
- registerTypeAdapterFactory
Register a factory for type adapters. Registering a factory is useful when the
type adapter needs to
- setFieldNamingPolicy
Configures Gson to apply a specific naming policy to an object's field during
serialization and dese
- registerTypeHierarchyAdapter
Configures Gson for custom serialization or deserialization for an inheritance
type hierarchy. This
- excludeFieldsWithoutExposeAnnotation
Configures Gson to exclude all fields from consideration for serialization or
deserialization that d
- setExclusionStrategies
Configures Gson to apply a set of exclusion strategies during both serialization
and deserialization