|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Reader
.
Writer
.
Gson
class to convert Json to Java and
vice-versa.Gson
.Gson
instance based on the current configuration.
Expose
annotation.
Writer
and flushes that writer.
reader
and convert it to an object
of type typeOfT
.
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();
- getDeclaringClass() - Method in class com.google.gson.FieldAttributes
- 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
.
in
.
JsonSerializer.serialize(Object, Type, JsonSerializationContext)
method.JsonElement
s from the specified reader
asynchronously.out
.
long
or Long
type when its serialized.JsonElement
on the reader.
boolean
value of the next token,
consuming it.
double
value of the next token,
consuming it.
int
value of the next token,
consuming it.
long
value of the next token,
consuming it.
property name
, and
consumes it.
string
value of the next token,
consuming it.
null
.
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.
src
of type typeOfSrc
to
writer
.
JsonElement
s into its equivalent JSON representation.
JsonElement
s.
jsonElement
to writer
.
JsonElement
s.
JsonElement
s.
T
.value
.
value
.
value
.
value
.
value
.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |