All Classes
-
All Classes Interface Summary Class Summary Enum Summary Exception Summary Annotation Types Summary Class Description ArrayTypeAdapter<E> Adapter for arrays.CollectionTypeAdapterFactory Adapt a homogeneous collection of objects.CollectionTypeAdapterFactory.Adapter<E> ConstructorConstructor Returns a function that can construct an instance of a requested type.DefaultDateTypeAdapter<T extends java.util.Date> This type adapter supports subclasses of date by defining aDefaultDateTypeAdapter.DateTypeand then using itscreateAdapterFactorymethods.DefaultDateTypeAdapter.DateType<T extends java.util.Date> EnumTypeAdapter<T extends java.lang.Enum<T>> Adapter for enum classes (but not for the base classjava.lang.Enum).Excluder This class selects which fields and types to omit.ExclusionStrategy 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.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.FormattingStyle A class used to control what the serialization output looks like.GraphAdapterBuilder A builder for constructing a graph-aware type adapter.GraphAdapterBuilder.Element<T> An element of the graph during serialization or deserialization.GraphAdapterBuilder.Factory A factory that creates type adapters capable of serializing and deserializing object graphs.GraphAdapterBuilder.Graph Gson This is the main class for using Gson.Gson.FutureTypeAdapter<T> Proxy type adapter for cyclic type graphs.GsonBuildConfig Build configuration for Gson.GsonBuilder Use this builder to construct aGsoninstance when you need to set configuration options other than the default.GsonTypes Static methods for working with types.GsonTypes.GenericArrayTypeImpl GsonTypes.ParameterizedTypeImpl GsonTypes.WildcardTypeImpl The WildcardType interface supports multiple upper bounds and multiple lower bounds.InstanceCreator<T> This interface is implemented to create instances of a class that does not define a no-args constructor.Intercept Use this annotation to indicate various interceptors for class instances after they have been processed by Gson.InterceptorFactory A type adapter factory that implements@Intercept.InterceptorFactory.InterceptorAdapter<T> ISO8601Utils Utilities methods for manipulating dates in iso8601 format.JavaVersion Utility to check the major Java version of the current JVM.JsonAdapter An annotation that indicates the GsonTypeAdapterto use with a class or field.JsonAdapterAnnotationTypeAdapterFactory Given a type T, looks for the annotationJsonAdapterand uses an instance of the specified class as the default type adapter.JsonAdapterAnnotationTypeAdapterFactory.DummyTypeAdapterFactory 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.JsonElementTypeAdapter Adapter forJsonElementand subclasses.JsonIOException This exception is raised when Gson was unable to read an input stream or write to one.JsonNull A class representing a JSONnullvalue.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 ofJsonElements.JsonPostDeserializer<T> This interface is implemented by a class that wishes to inspect or modify an object after it has been deserialized.JsonPrimitive A class representing a JSON primitive value.JsonReader Reads a JSON (RFC 8259) encoded value as a stream of tokens.JsonReaderInternalAccess Internal-only APIs of JsonReader available only to other classes in Gson.JsonScope Lexical scoping elements within a JSON reader or writer.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 multipleJsonElements 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.JsonTreeReader This reader walks the elements of a JsonElement as if it was coming from a character stream.JsonTreeWriter This writer creates a JsonElement.JsonWriter Writes a JSON (RFC 8259) encoded value to a stream, one token at a time.LazilyParsedNumber This class holds a number value that is lazily converted to a specific number typeLinkedTreeMap<K,V> A map of comparable keys to values.LinkedTreeMap.Node<K,V> LongSerializationPolicy Defines the expected format for alongorLongtype when it is serialized.MalformedJsonException Thrown when a reader encounters malformed JSON.MapTypeAdapterFactory Adapts maps to either JSON objects or JSON arrays.NonNullElementWrapperList<E> Listwhich wraps anotherListbut prevents insertion ofnullelements.NumberLimits This class enforces limits on numbers parsed from JSON to avoid potential performance problems when extremely large numbers are used.NumberTypeAdapter Type adapter forNumber.ObjectConstructor<T> Defines a generic object construction factory.ObjectTypeAdapter Adapts types whose static type is only 'Object'.PostConstructAdapterFactory PostConstructAdapterFactory.PostConstructAdapter<T> PreJava9DateFormatProvider Provides DateFormats for US locale with patterns which were the default ones before Java 9.Primitives Contains static utility methods pertaining to primitive types and their corresponding wrapper types.RawCollectionsExample RawCollectionsExample.Event ReflectionAccessFilter Filter for determining whether reflection based serialization and deserialization is allowed for a class.ReflectionAccessFilter.FilterResult Result of a filter check.ReflectionAccessFilterHelper Internal helper class forReflectionAccessFilter.ReflectionAccessFilterHelper.AccessChecker ReflectionHelper ReflectionHelper.RecordHelper Internal abstraction over reflection when Records are supported.ReflectionHelper.RecordNotSupportedHelper Instance used when records are not supportedReflectionHelper.RecordSupportedHelper ReflectiveTypeAdapterFactory Type adapter that reflects over the fields and methods of a class.ReflectiveTypeAdapterFactory.Adapter<T,A> Base class for Adapters produced by this factory.ReflectiveTypeAdapterFactory.BoundField ReflectiveTypeAdapterFactory.FieldReflectionAdapter<T> ReflectiveTypeAdapterFactory.FieldsData ReflectiveTypeAdapterFactory.RecordAdapter<T> RuntimeTypeAdapterFactory<T> Adapts values whose runtime type may differ from their declaration type.SerializationDelegatingTypeAdapter<T> Type adapter which might delegate serialization to another adapter.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.SqlDateTypeAdapter Adapter for java.sql.Date.SqlTimestampTypeAdapter SqlTimeTypeAdapter Adapter for java.sql.Time.SqlTypesSupport Encapsulates access tojava.sqltypes, to allow Gson to work without thejava.sqlmodule being present.Streams Reads and writes GSON parse trees over streams.Streams.AppendableWriter Adapts anAppendableso it can be passed anywhere aWriteris used.Streams.AppendableWriter.CurrentWrite A mutable char sequence pointing at a single char[].Strictness Modes that indicate how strictly a JSON reader or writer follows the syntax laid out in the RFC 8259 JSON specification.ToNumberPolicy An enumeration that defines two standard number reading strategies and a couple of strategies to overcome some historical Gson limitations while deserializing numbers asObjectandNumber.ToNumberStrategy A strategy that is used to control how numbers should be deserialized forObjectandNumberwhen a concrete type of the deserialized number is unknown in advance.TreeTypeAdapter<T> Adapts a Gson 1.x tree-style adapter as a streaming TypeAdapter.TreeTypeAdapter.SingleTypeFactory TroubleshootingGuide TypeAdapter<T> Converts Java objects to and from JSON.TypeAdapterFactory Creates type adapters for set of related types.TypeAdapterRuntimeTypeWrapper<T> TypeAdapters Type adapters for basic types.TypeToken<T> Represents a generic typeT.UnsafeAllocator Do sneaky things to allocate objects without invoking their constructors.Until An annotation that indicates the version number until a member or a type should be present.UtcDateTypeAdapter