https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

janvladimirmostert

07/25/2020, 9:33 PM
are there any plans to allow kotlinx.serialization to only serialize / deserialize certain fields? Jackson has something like
@JsonIgnoreProperties
, maybe a @JsonInclude and @JsonExclude would be nice or something more generic that allows field filtering when serializing / deserializing
a

audriusk

07/26/2020, 6:31 AM
Well, there is
@Transient
annotation https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/examples.md#annotations You can exclude properties one by one. If that doesn't satisfies your need you can try filling feature request ticket
j

janvladimirmostert

07/26/2020, 8:56 AM
that'll work, thanks for the info!