https://kotlinlang.org logo
#functional
Title
# functional
u

Uberto Barbini

04/10/2021, 12:32 PM
I've created a little library to serialize/deserialize Json in a functional-friendly way: https://github.com/uberto/kondor-json
👍🏼 2
👍 6
🚀 1
m

Marius Kotsbak

04/21/2021, 11:15 AM
Not sure why I would prefer it over https://github.com/Kotlin/kotlinx.serialization
Or https://github.com/47degrees/helios which is a bit dead ATM.
u

Uberto Barbini

04/23/2021, 9:40 AM
Helios is part of Arrow, so if you adopt it then it makes sense, otherwise prob not.
Kotlin Serialization was our first choice but it comes with many problems. The biggest being the fact that it force you to have a single Json representation of each domain class, which is problematic if you need to support versions and external api. On top of that is quite complicated to create your own serializers for KS.
1
13 Views