Jilles Soeters
10/08/2024, 3:12 PMefemoney
10/08/2024, 3:27 PMArivnd Ramesh
10/08/2024, 3:53 PMRaimund Klein
10/08/2024, 4:06 PMJilles Soeters
10/08/2024, 4:15 PMcomparative form of nice: more niceIf you mean what I prefer? It's adding a
@Serializable
to any data-class and it works out of the box. Jackson requires a few steps more. This could also be a skill-issue on my partEmil Kantis
10/08/2024, 4:23 PMJasonB
10/08/2024, 4:24 PMPatrik Zelena
10/08/2024, 5:06 PMthanksforallthefish
10/09/2024, 7:53 AMAny
, but it could have been a skill issue as well (though jackson is quite complex and I don't pretend to be an expert, I feel I can use it efficiently enough).
I am planning to give KxS another try in a next project, I need to double check where support in Spring stands but it's definitely an option I want to exploreJilles Soeters
10/09/2024, 3:13 PMJasonB
10/09/2024, 3:18 PMKotlin multiplatform serialization is supported in Spring MVC, Spring WebFlux and Spring Messaging (RSocket). The builtin support currently targets CBOR, JSON, and ProtoBuf formats.
To enable it, follow those instructions to add the related dependency and plugin. With Spring MVC and WebFlux, both Kotlin serialization and Jackson will be configured by default if they are in the classpath since Kotlin serialization is designed to serialize only Kotlin classes annotated with. With Spring Messaging (RSocket), make sure that neither Jackson, GSON or JSONB are in the classpath if you want automatic configuration, if Jackson is needed configure@Serializable
manually.KotlinSerializationJsonMessageConverter
Jilles Soeters
10/09/2024, 3:21 PMPihentagy
10/10/2024, 6:17 PMJilles Soeters
10/28/2024, 4:23 PMthanksforallthefish
10/28/2024, 4:25 PMthanksforallthefish
10/28/2024, 4:25 PMJilles Soeters
10/28/2024, 4:26 PMthanksforallthefish
10/28/2024, 4:29 PM{"username": "a"}
to {"username":"f"}
should have little to no impact, but having another object like {"size":2 }
should change more in terms of jackson optimizationJilles Soeters
10/28/2024, 5:40 PM