Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kotlin Serializationことはじめ
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
slme
August 24, 2019
Technology
1.1k
1
Share
Kotlin Serializationことはじめ
slme
August 24, 2019
More Decks by slme
See All by slme
ViewModel SavedState
slme
1
150
EXIA.pdf
slme
0
150
Other Decks in Technology
See All in Technology
No Types Needed, Just Callable Method Check
dak2
1
1.3k
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
130
EarthCopilotに学ぶマルチエージェントオーケストレーション
nakasho
0
300
これからの「データマネジメント」の話をしよう
sansantech
PRO
0
100
国内外の生成AIセキュリティの最新動向 & AIガードレール製品「chakoshi」のご紹介 / Latest Trends in Generative AI Security (Domestic & International) & Introduction to AI Guardrail Product "chakoshi"
nttcom
3
1.2k
20260428_Product Management Summit_tadokoroyoshiro
tadokoro_yoshiro
1
460
AgentCore Managed Harness を使ってみよう
yakumo
2
110
AIでAIをテストする - 音声AIエージェントの品質保証戦略
morix1500
1
120
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
630
AIはハッカーを減らすのか、増やすのか?──現役ホワイトハッカーから見るAI時代のリアル【MEGU-Meet】
cscengineer
0
170
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
300
2026年、知っておくべき最新 サーバレスTips10選/serverless-10-tips
slsops
13
5.2k
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
110
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
YesSQL, Process and Tooling at Scale
rocio
174
15k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
320
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
530
Test your architecture with Archunit
thirion
1
2.2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.6k
Un-Boring Meetings
codingconduct
0
270
Building the Perfect Custom Keyboard
takai
2
730
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Transcript
KotlinSerialization ことはじめ 概要と入門
$ whoami - slme(スルメ) - @slme_not_found - DMM.com Androidエンジニア -
新卒エンジニア
What is Kotlin Serialization
What is it - 1.3以降あたりで導入された機能 - CBOR, JSON, ProtoBufをサポート -
100%Kotlin実装 - カスタムシリアライザで自作できる - reflectionを使わない
None
Http clientとの組み合わせは?
Ktor Client
Retrofit https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter
Retrofitの場合: Moshi, Gson Ktorの場合: Kotlin Serialization
Moshi, GsonはOkioを使っている ↓ OkHttpを扱う際はそちらのほうが相性が良い
About Kotlin Serialization - メリット - 100% Kotlin実装 - 色々な形式を扱う時に単一で済む
- カスタムシリアライザで自作できる - デメリット - JSON単一で扱うかつKotlin/JVMならばMoshiで良い感 - Serializationを用いてkamlのように作ってもJVM依存が生まれたりする - 一部不安定 or 非推奨がある
速度は?
https://github.com/wizzardo/json-benchmarks
形式にもよるが大きな変化はない
まとめ - KotlinMPPを考えないかつJSONのみであればMoshiなどで充分 - @Seralizableを使うことでJSON以外にもserialize可能になる - 一部 不安定or非推奨あり - ベンチマークは対して大きな変化はない
ご清聴ありがとうございました