https://kotlinlang.org logo
#android
Title
# android
g

Geert

09/26/2019, 8:55 AM
I have been out of JSON Parsing lately, what kind of libraries do the most of you use currently? I find lots of them on Github
m

Mark McCormick

09/26/2019, 8:57 AM
Moshi and Gson
e

Efe

09/26/2019, 8:59 AM
moshi
g

Geert

09/26/2019, 9:03 AM
I used GSON before that was a bit deprecated on Kotlin inline classes
s

sindrenm

09/26/2019, 9:06 AM
Moshi. Or, if you feel like it, you could have a go at kotlinx.serialization: https://github.com/Kotlin/kotlinx.serialization
j

jw

09/26/2019, 12:03 PM
Moshi or kotlinx.serialization. Gson is dead in the water.
kotlinx.serialization rocks 🔥
j

jw

09/26/2019, 12:23 PM
Whatever those benchmarks show, it's not going to be representative for Moshi because it uses a String instead of bytes as its input which is not how you would use it in practice (and not the path it's optimized for)
👍 1
a

ahulyk

09/26/2019, 12:51 PM
will try to fix it