-
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
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
jackson-module-kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
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.