Make it compatible with Retrofit
See original GitHub issueI am having issues using this library with Retrofit and GSON.
Since some of the classes, like ZoneId are abstract and GSON can’t create them, I am getting exceptions on Retrofit when I try do deserialize my webservice JSON response.
It would be great to have an adapter that could be plugged into Retrofit to provide GSON the ability to deal with this library.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Consuming APIs with Retrofit | CodePath Android Cliffnotes
This library makes downloading JSON or XML data from a web API fairly straightforward. Once the data is downloaded then it is parsed...
Read more >Using Retrofit 2.x as REST client - Tutorial - Vogella.com
Create an Android application with the name Retrofit Github . Use com.vogella.android.retrofitgithub as the top level package name and use the empty template....
Read more >Retrofit Android Example Tutorial - DigitalOcean
Retrofit is type-safe REST client for Android and Java which aims to make it easier to consume RESTful web services.
Read more >Simple GET request using Retrofit in Android - Section.io
Simple GET request using Retrofit in Android · Step 1 – Create a new Android studio project · Step 2 – Adding retrofit...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

If you’re using Retrofit you’re using OkHttp which uses Okio which is what Moshi uses which means there’s no intermediate byte[] copies between layers so it’s faster. Most Gson vs. Moshi benchmarks either deal with Strings where it’s slower or actually use a real network where the network behavior contributes instability to the timings.
I can provide example Moshi adapters when I get home.
On Thu, Jan 4, 2018, 9:18 PM feinstein notifications@github.com wrote: