All Classes
-
All Classes Interface Summary Class Summary Enum Summary Exception Summary Annotation Types Summary Class Description ExclusionStrategy A strategy (or policy) definition that is used to decide whether or not a field or top-level class should be serialized or deserialized as part of the JSON output/input.Expose An annotation that indicates this member should be exposed for JSON serialization or deserialization.FieldAttributes A data object that stores attributes of a field.FieldNamingPolicy An enumeration that defines a few standard naming conventions for JSON field names.FieldNamingStrategy A mechanism for providing custom field naming in Gson.Gson This is the main class for using Gson.GsonBuilder Use this builder to construct aGson
instance when you need to set configuration options other than the default.InstanceCreator<T> This interface is implemented to create instances of a class that does not define a no-args constructor.JsonAdapter An annotation that indicates the GsonTypeAdapter
to use with a class or field.JsonArray A class representing an array type in Json.JsonDeserializationContext Context for deserialization that is passed to a custom deserializer during invocation of itsJsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)
method.JsonDeserializer<T> Interface representing a custom deserializer for Json.JsonElement A class representing an element of Json.JsonIOException This exception is raised when Gson was unable to read an input stream or write to one.JsonNull A class representing a Jsonnull
value.JsonObject A class representing an object type in Json.JsonParseException This exception is raised if there is a serious issue that occurs during parsing of a Json string.JsonParser A parser to parse Json into a parse tree ofJsonElement
sJsonPrimitive A class representing a Json primitive value.JsonReader Reads a JSON (RFC 7159) encoded value as a stream of tokens.JsonSerializationContext Context for serialization that is passed to a custom serializer during invocation of itsJsonSerializer.serialize(Object, Type, JsonSerializationContext)
method.JsonSerializer<T> Interface representing a custom serializer for Json.JsonStreamParser A streaming parser that allows reading of multipleJsonElement
s from the specified reader asynchronously.JsonSyntaxException This exception is raised when Gson attempts to read (or write) a malformed JSON element.JsonToken A structure, name or value type in a JSON-encoded string.JsonWriter Writes a JSON (RFC 7159) encoded value to a stream, one token at a time.LongSerializationPolicy Defines the expected format for along
orLong
type when its serialized.MalformedJsonException Thrown when a reader encounters malformed JSON.SerializedName An annotation that indicates this member should be serialized to JSON with the provided name value as its field name.Since An annotation that indicates the version number since a member or a type has been present.TypeAdapter<T> Converts Java objects to and from JSON.TypeAdapterFactory Creates type adapters for set of related types.TypeToken<T> Represents a generic typeT
.Until An annotation that indicates the version number until a member or a type should be present.