Uses of Package
com.google.gson
-
Packages that use com.google.gson Package Description com.google.gson This package provides theGson
class to convert Json to Java and vice-versa.com.google.gson.internal Do NOT use any class in this package as they are meant for internal use in Gson.com.google.gson.internal.bind com.google.gson.internal.sql -
Classes in com.google.gson used by com.google.gson 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.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.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.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.JsonPrimitive A class representing a Json primitive value.JsonSerializationContext Context for serialization that is passed to a custom serializer during invocation of itsJsonSerializer.serialize(Object, Type, JsonSerializationContext)
method.JsonSyntaxException This exception is raised when Gson attempts to read (or write) a malformed JSON element.LongSerializationPolicy Defines the expected format for along
orLong
type when it is serialized.ToNumberPolicy An enumeration that defines two standard number reading strategies and a couple of strategies to overcome some historical Gson limitations while deserializing numbers asObject
andNumber
.ToNumberStrategy A strategy that is used to control how numbers should be deserialized forObject
andNumber
when a concrete type of the deserialized number is unknown in advance.TypeAdapter Converts Java objects to and from JSON.TypeAdapterFactory Creates type adapters for set of related types. -
Classes in com.google.gson used by com.google.gson.internal 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.Gson This is the main class for using Gson.InstanceCreator This interface is implemented to create instances of a class that does not define a no-args constructor.JsonElement A class representing an element of Json.JsonParseException This exception is raised if there is a serious issue that occurs during parsing of a Json string.TypeAdapter Converts Java objects to and from JSON.TypeAdapterFactory Creates type adapters for set of related types. -
Classes in com.google.gson used by com.google.gson.internal.bind Class Description FieldNamingStrategy A mechanism for providing custom field naming in Gson.Gson This is the main class for using Gson.JsonDeserializer Interface representing a custom deserializer for Json.JsonElement A class representing an element of Json.JsonSerializer Interface representing a custom serializer for Json.ToNumberStrategy A strategy that is used to control how numbers should be deserialized forObject
andNumber
when a concrete type of the deserialized number is unknown in advance.TypeAdapter Converts Java objects to and from JSON.TypeAdapterFactory Creates type adapters for set of related types. -
Classes in com.google.gson used by com.google.gson.internal.sql Class Description TypeAdapterFactory Creates type adapters for set of related types.