Our great sponsors
-
jackson-module-kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Going by [https://github.com/Kotlin/kotlinx.serialization/blob/fc9343f06c5184d51df9ad1006d26c60c3230c2a/core/commonMain/src/kotlinx/serialization/encoding/Encoding.kt#L209-L230](this), it looks like serializing a @JvmInline @Serializable class with e.g. an Int property will compile as compositeEncoder.encodeInline(...).encodeInt(...). So statically it'll know to encode an Int value
If you use Jackson, don't forget to include the Kotlin extensions https://github.com/FasterXML/jackson-module-kotlin
Someone already implemented it. Full list of supported formats can be found here.