This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

Kotlin Serialization

Aug 2 2022 · Video Course (24 mins) · Beginner

Learn what Kotlin Serialization library is and how to use it in your Android app. Also learn how it differs from other data serialization libraries like Moshi and Gson.

Version

  • Kotlin 1.6.10, Android 12, Android Studio Bumblebee

Kotlin Serialization

Learn the process of Data Encoding and Serialization followed by Data Decoding and Deserialization.

1

Explore the starter project and add required dependencies for Kotlin Serialization Library.

2

Learn about Compiler Plugin & JSON Encoder Module and then compare Kotlin Serialization Library with Moshi and Gson.

3

Learn how to model your data using annotations & how to encode it manually.

4

Learn how to serialize composite types, customize property names and mark data as Transient.

5

Learn how to use Retrofit with the Kotlin Serialization library to fetch data from a remote API.

6

Learn how to write a serializer manually by providing descriptor and logic for serialization/deserialization.

7

Learn about limitations of Kotlin Serialization library.

8

Who is this for?

This course is for Android developers who wish to learn basics of Serialization/Deserialization and how to use Kotlin Serialization library in their apps. This course expects familiarity with Android Studio and basics of Kotlin programming language.

Covered concepts

  • Data Serialization & Deserialization
  • Data Encoding & Decoding
  • Kotlin Serialization
  • Compiler Plugin
  • JSON Encoder Module
  • Comparison of Serialization Libraries
  • Customizations in Kotlin Serialization Library
  • Integration with Retrofit
  • Writing Serializers Manually

Contributors

Comments