micronaut-projects / micronaut-kotlin

Additional projects that improve the Micronaut experience with Kotlin
Apache License 2.0
85 stars 17 forks source link

Add support for Kotlin serialization #47

Open raderio opened 5 years ago

raderio commented 5 years ago

https://github.com/Kotlin/kotlinx.serialization

Kotlin cross-platform / multi-format reflectionless serialization. Kotlin serialization consists of a compiler plugin, which automatically produces visitor code for classes, and runtime library, which uses generated code to serialize objects without reflection.

willbuck commented 4 years ago

@raderio is there something that would prevent you from using this? I haven't looked into it that closely yet, but I'm not certain we would be able to easily accommodate this in the internals of micronaut-core, as we want to support Java and Groovy as well, so Jackson's interoperability on all the JVM languages makes the most sense to use.

Can you provide more detail as to what "supporting" kotlin serialization would look like? Nothing should prevent you from using this yourself in your application code that I'm aware of.

graemerocher commented 4 years ago

If a module were to be built or contributed think it makes more sense here

willbuck commented 4 years ago

@raderio Any follow-up on this request?

NorbertSandor commented 3 years ago

@raderio Any follow-up on this request?

Only as info, Spring will support kotlinx.serialization as an alternative to Jackson:

I think that many Kotlin users would be happy with a similar solution in Micronaut as well ;)

dave08 commented 10 months ago

An extra plus for this implementation would be support for kotlin's value classes which I think Jackson can't support...