|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Gson
class to convert Json to Java and
vice-versa.Gson
.Gson
instance based on the current configuration.
Expose
annotation.
Type
instance.
Class
instance.
T
annotation object from this field if it exist; otherwise returns
null
.
BigDecimal
if it contains a single element.
BigDecimal
.
BigDecimal
.
BigInteger
if it contains a single element.
BigInteger
.
BigInteger
.
JsonArray
.
JsonNull
.
JsonObject
.
JsonPrimitive
.
Number
if it contains a single element.
Number
.
String
if it contains a single element.
Class<?>
object that was declared for this field.
public class Foo { private String bar; private List<String> red; } Type listParmeterizedType = new TypeToken>() {}.getType();
- getName() - Method in class com.google.gson.FieldAttributes
- getRawType() - Method in class com.google.gson.reflect.TypeToken
- Gets the raw type.
- getType() - Method in class com.google.gson.reflect.TypeToken
- Gets underlying
Type
instance.- Gson - Class in com.google.gson
- This is the main class for using Gson.
- Gson() - Constructor for class com.google.gson.Gson
- Constructs a Gson object with default configuration.
- GsonBuilder - Class in com.google.gson
- Use this builder to construct a
Gson
instance when you need to set configuration options other than the default.- GsonBuilder() - Constructor for class com.google.gson.GsonBuilder
- Creates a GsonBuilder instance that can be used to build Gson with various configuration settings.
true
if the field is defined with the modifier
.
JsonElement
is available on the input for consumption
JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)
method.null
value.JsonElement
sNumber
.
JsonSerializer.serialize(Object, Type, JsonSerializationContext)
method.JsonElement
s from the specified reader
asynchronously.long
or Long
type when its serialized.JsonElement
on the reader.
property
from this JsonObject
.
Iterator
method is not relevant for stream parsing and hence is not
implemented.
value
using this serialization policy.
Date
objects according to the pattern provided.
Date
objects according to the style value provided.
Date
objects according to the style value provided.
Long
and long
objects.
JsonElement
s into its equivalent JSON representation.
JsonElement
s.
JsonElement
s.
JsonElement
s.
T
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |