JsonElement and subclasses.
| Modifier and Type | Field and Description |
|---|---|
| public static final JsonElementTypeAdapter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public JsonElement | read(JsonReader in)
Implements abstract com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. |
| private JsonElement | readTerminal(JsonReader in, JsonToken peeked)
Reads a |
| private JsonElement | tryBeginNesting(JsonReader in, JsonToken peeked)
Tries to begin reading a JSON array or JSON object, returning |
| public void | write(JsonWriter out, JsonElement value)
Implements abstract com. Writes one JSON value (an array, object, string, number, boolean or null) for |
| ADAPTER | back to summary |
|---|---|
| public static final JsonElementTypeAdapter ADAPTER | |
| JsonElementTypeAdapter | back to summary |
|---|---|
| private JsonElementTypeAdapter() | |
| read | back to summary |
|---|---|
| public JsonElement read(JsonReader in) throws IOException Implements abstract com. Doc from com. Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.
| |
| readTerminal | back to summary |
|---|---|
| private JsonElement readTerminal(JsonReader in, JsonToken peeked) throws IOException Reads a | |
| tryBeginNesting | back to summary |
|---|---|
| private JsonElement tryBeginNesting(JsonReader in, JsonToken peeked) throws IOException Tries to begin reading a JSON array or JSON object, returning | |
| write | back to summary |
|---|---|
| public void write(JsonWriter out, JsonElement value) throws IOException Implements abstract com. Doc from com. Writes one JSON value (an array, object, string, number, boolean or null) for
| |