https://kotlinlang.org logo
Title
j

jecarr33

10/15/2018, 1:27 AM
is using gson the best way to extract data from json using kotlin? Everything I've searched for kind of points to it, or has something else came along?
e

egorand

10/15/2018, 1:31 AM
check out Moshi, it works really well with Kotlin https://github.com/square/moshi
j

jecarr33

10/15/2018, 1:38 AM
will do!!! thanks!
g

gildor

10/15/2018, 1:53 AM
Gson is definitely not the best choice for Kotlin. Because Gson doesn’t provide any Kotlin-specific library and know nothing about Kotlin features and nullability. But with some effort and with some caution can be used with Kotlin Jackson also has special adapter library for Kotlin
y

yen

10/15/2018, 2:02 AM
I had decent experience with Kotlin’s experimental serialization library: https://github.com/Kotlin/kotlinx.serialization
👍 1
j

jecarr33

10/15/2018, 7:15 AM
I want to thank everyone who put in their suggestions. Thank you all very much!