~/talk

Upgrading to Moshi

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [android, java]
links:none on file
slides:none on file

Compares Moshi to Gson with concrete migration notes: Moshi keeps a streaming and object API, adds selectName/selectString and Options to avoid allocating field-name strings, and reuses Okio buffers to cut overhead; the library adds failOnUnknown for strict debugging, requires registering adapters for platform types, and throws on unknown enums instead of returning null. Adapter creation is more expensive but reusable, Moshi adds no field‑naming policy, adds ~112 KB (on top of Okio), and supports Retrofit converter tricks and AutoValue-Moshi for incremental upgrades.

AI-written summary · about

  1. 0:00Introduction to Moshi upgrade
  2. 1:17Why switch from GSON to Moshi
  3. 8:08Key API differences overview
  4. 12:50Streaming API changes
  5. 15:42Object mapping API updates
  6. 18:55Type token replacement with Types
  7. 21:29JSON qualifiers for custom adapters
  8. 23:59Simplified adapter creation
  9. 25:46Handling polymorphic types
  10. 28:59Step-by-step migration tips
  11. 31:07Resources and next steps
~/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.