doc(UserGuide): mention TypeAdapters class (#1685)
This commit is contained in:
parent
55acc23d86
commit
1a9469a8c5
|
@ -301,11 +301,12 @@ This approach is practical only if the array appears as a top-level element or i
|
|||
|
||||
### <a name="TOC-Built-in-Serializers-and-Deserializers"></a>Built-in Serializers and Deserializers
|
||||
|
||||
Gson has built-in serializers and deserializers for commonly used classes whose default representation may be inappropriate.
|
||||
Here is a list of such classes:
|
||||
Gson has built-in serializers and deserializers for commonly used classes whose default representation may be inappropriate, for instance
|
||||
|
||||
1. `java.net.URL` to match it with strings like `"https://github.com/google/gson/"`
|
||||
2. `java.net.URI` to match it with strings like `"/google/gson/"`
|
||||
* `java.net.URL` to match it with strings like `"https://github.com/google/gson/"`
|
||||
* `java.net.URI` to match it with strings like `"/google/gson/"`
|
||||
|
||||
For many more, see the internal class [`TypeAdapters`](https://github.com/google/gson/blob/master/gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java).
|
||||
|
||||
You can also find source code for some commonly used classes such as JodaTime at [this page](https://sites.google.com/site/gson/gson-type-adapters-for-common-classes-1).
|
||||
|
||||
|
|
Loading…
Reference in New Issue