47degrees / helios

A purely functional JSON library for Kotlin built on Λrrow
https://47degrees.github.io/helios/
Apache License 2.0
169 stars 22 forks source link

Add support for custom serialization names #127

Open JorgeCastilloPrz opened 5 years ago

JorgeCastilloPrz commented 5 years ago

Ideally you'd be able to provide custom serialization names as you do for other libraries like:

data class MyClass(
    @SerializedName("user_id") val id: String,
    @SerializedName("user_name") val name: String,
    val lastName: String,
    val mail: String
)

That helps when you want to name your properties differently than in the json, which is a common use case.