SalomonBrys / Kotson

Kotlin bindings for JSON manipulation via Gson
MIT License
709 stars 37 forks source link

Default Values #39

Closed dri94 closed 3 years ago

dri94 commented 6 years ago

Does this support Kotlin's default values? With Gson when deserializing, if a value does not exist, it becomes null. Since this is supposed to support Kotson, does that value now get set to default value if it does not exist?

P1NG2WIN commented 3 years ago

So what? Does this library support default values?

SalomonBrys commented 3 years ago

This library provides utilities for GSon usage in Kotlin. In no way does this library intervenes in the serialization / deserialization process. This is a question for GSon,.

P1NG2WIN commented 3 years ago

Maybe you know some good libs that has build in support for kotlin? @SalomonBrys

SalomonBrys commented 3 years ago

KotlinX.Serialization

P1NG2WIN commented 3 years ago

Will see it, thanks!