Package | Description |
---|---|
com.google.gson |
This package provides the
Gson 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.stream |
Modifier and Type | Method and Description |
---|---|
void |
Gson.toJson(JsonElement jsonElement,
JsonWriter writer)
Writes the JSON for
jsonElement to writer . |
void |
Gson.toJson(Object src,
Type typeOfSrc,
JsonWriter writer)
Writes the JSON representation of
src of type typeOfSrc to
writer . |
abstract void |
TypeAdapter.write(JsonWriter out,
T value)
Writes one JSON value (an array, object, string, number, boolean or null)
for
value . |
Modifier and Type | Method and Description |
---|---|
static void |
Streams.write(JsonElement element,
JsonWriter writer)
Writes the JSON element to the writer, recursively.
|
Modifier and Type | Class and Description |
---|---|
class |
JsonTreeWriter
This writer creates a JsonElement.
|
Modifier and Type | Method and Description |
---|---|
JsonWriter |
JsonTreeWriter.beginArray() |
JsonWriter |
JsonTreeWriter.beginObject() |
JsonWriter |
JsonTreeWriter.endArray() |
JsonWriter |
JsonTreeWriter.endObject() |
JsonWriter |
JsonTreeWriter.name(String name) |
JsonWriter |
JsonTreeWriter.nullValue() |
JsonWriter |
JsonTreeWriter.value(boolean value) |
JsonWriter |
JsonTreeWriter.value(double value) |
JsonWriter |
JsonTreeWriter.value(long value) |
JsonWriter |
JsonTreeWriter.value(Number value) |
JsonWriter |
JsonTreeWriter.value(String value) |
Modifier and Type | Method and Description |
---|---|
void |
DateTypeAdapter.write(JsonWriter out,
Date value) |
void |
SqlDateTypeAdapter.write(JsonWriter out,
Date value) |
void |
ArrayTypeAdapter.write(JsonWriter out,
Object array) |
void |
ObjectTypeAdapter.write(JsonWriter out,
Object value) |
void |
ReflectiveTypeAdapterFactory.Adapter.write(JsonWriter out,
T value) |
void |
TimeTypeAdapter.write(JsonWriter out,
Time value) |
Modifier and Type | Method and Description |
---|---|
JsonWriter |
JsonWriter.beginArray()
Begins encoding a new array.
|
JsonWriter |
JsonWriter.beginObject()
Begins encoding a new object.
|
JsonWriter |
JsonWriter.endArray()
Ends encoding the current array.
|
JsonWriter |
JsonWriter.endObject()
Ends encoding the current object.
|
JsonWriter |
JsonWriter.name(String name)
Encodes the property name.
|
JsonWriter |
JsonWriter.nullValue()
Encodes
null . |
JsonWriter |
JsonWriter.value(boolean value)
Encodes
value . |
JsonWriter |
JsonWriter.value(double value)
Encodes
value . |
JsonWriter |
JsonWriter.value(long value)
Encodes
value . |
JsonWriter |
JsonWriter.value(Number value)
Encodes
value . |
JsonWriter |
JsonWriter.value(String value)
Encodes
value . |
Copyright © 2008–2018 Google, Inc.. All rights reserved.