All Classes and Interfaces
Class
Description
A strategy (or policy) definition that is used to decide whether or not a field or
class should be serialized or deserialized as part of the JSON output/input.
An annotation that indicates this member should be exposed for JSON
serialization or deserialization.
A data object that stores attributes of a field.
An enumeration that defines a few standard naming conventions for JSON field names.
A mechanism for providing custom field naming in Gson.
This is the main class for using Gson.
Use this builder to construct a
Gson
instance when you need to set configuration
options other than the default.This interface is implemented to create instances of a class that does not define a no-args
constructor.
An annotation that indicates the Gson
TypeAdapter
to use with a class
or field.A class representing an array type in JSON.
Context for deserialization that is passed to a custom deserializer during invocation of its
JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)
method.Interface representing a custom deserializer for JSON.
A class representing an element of JSON.
This exception is raised when Gson was unable to read an input stream
or write to one.
A class representing a JSON
null
value.A class representing an object type in Json.
This exception is raised if there is a serious issue that occurs during parsing of a Json
string.
A parser to parse JSON into a parse tree of
JsonElement
s.A class representing a JSON primitive value.
Reads a JSON (RFC 7159)
encoded value as a stream of tokens.
Context for serialization that is passed to a custom serializer during invocation of its
JsonSerializer.serialize(Object, Type, JsonSerializationContext)
method.Interface representing a custom serializer for JSON.
A streaming parser that allows reading of multiple
JsonElement
s from the specified reader
asynchronously.This exception is raised when Gson attempts to read (or write) a malformed
JSON element.
A structure, name or value type in a JSON-encoded string.
Writes a JSON (RFC 7159)
encoded value to a stream, one token at a time.
Defines the expected format for a
long
or Long
type when it is serialized.Thrown when a reader encounters malformed JSON.
Filter for determining whether reflection based serialization and
deserialization is allowed for a class.
Result of a filter check.
An annotation that indicates this member should be serialized to JSON with
the provided name value as its field name.
An annotation that indicates the version number since a member or a type has been present.
Converts Java objects to and from JSON.
Creates type adapters for set of related types.
Represents a generic type
T
.An annotation that indicates the version number until a member or a type should be present.