You learned a lot about Moshi and its integration with Retrofit in this lesson. The key takeaways
are:
Use Moshi to parse JSON in your Android apps.
Moshi generates adapters for your custom data types if you annotate them with @JsonClass (generateAdapter = true).
You connect Moshi to Retrofit if you add the Moshi converter factory.
The converter allows Retrofit to automatically parse your requests and responses.
In the next lesson, you’ll refactor your networking code to work with Kotlin coroutines. This will
make the code much more readable and easier to grasp.
See forum comments
This content was released on Jun 5 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Demo 2
Next: Quiz: Parse JSON with Moshi
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.