Hello guys, When I use Gson with Kotlin, I experie...
# android
h
Hello guys, When I use Gson with Kotlin, I experience inconvenience because of unstable nullable parsing, polymorphic deserialize and many things.. So I want use another Json parser, can anyone recommend Json parser library? The specific environment is Retrofit + Gson for http request and I will migration Gson to new json parser. I think moshi is optimal choice, because I know kotlinx.serialization is unstable and still experimental for build retrofit converter. I think I'd be grateful if anyone gave me an opinion 🙇
o
1. Always use Moshi instead of Gson. Moshi is the next generation of Gson, written by the same people. 2. If you switch to Kotlinx Serialization instead you can use the converter that Jake linked.