Same like in java. But for Moshi there is adapter ...
# android
g
Same like in java. But for Moshi there is adapter for kotlin - https://medium.com/square-corner-blog/kotlins-a-great-language-for-json-fcd6ef99256b But be careful! It requires kotlin-reflect for work, so probably not the best choice for Android, just because kotlin-reflect is a quite big library