~/talk

What is Kotlin Serialization, and should I use it?

Talkat 360|AnDev 2019 · 2019-07-18..07-19· [kotlin]
speakerdeck:physphil
slides:none on file

Kotlin Serialization uses a compiler plugin and runtime to generate JSON serializers, supports collections, enums, sealed classes (polymorphism via a serializers module) and is usable with Retrofit via a Jake Wharton Retrofit converter. It needs @Serializable on properties, often requires custom serializers for objects, dates and generics, and currently lacks automatic object serialization; docs and API are experimental with breaking changes possible. Performance is comparable to Moshi/GSON; good for new Kotlin/multiplatform projects, avoid wholesale replacement in stable production.

AI-written summary · about

  1. 0:00Start
  2. 2:22Setup
  3. 4:21Basic Examples
  4. 13:05Custom Serializers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.