How can I use Kotlinx Serialization instead of Jackson?
See original GitHub issueFirstly, congratulations for the awesome project. I started using it two days ago and it is very fast and simple.
I would like to use kotlinx.serialization
instead of Jackson. How can I do it?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to swap Spring Boot mapper from Jackson to kotlinx ...
Just use Spring >= 5.3 and add corresponding kotlin plugin and serialization dependency. Spring switches serialization automatically.
Read more >How can I use Kotlinx Serialization instead of Jackson? #471
I would like to use kotlinx.serialization instead of Jackson. How can I do it? You can configure the JavalinJson plugin: JavalinJson.
Read more >Jackson, moshi or kotlinx.serialization? : r/Kotlin - Reddit
The main pros and cons are how well it fits (or doesn't) in your server stack. For example, kotlinx.serialization works very well in...
Read more >Kotlinx serialization with Spring Boot - Kotlin Discussions
I am guessing spring-boot is just using Jackson by default. ... out how to override that and use Kotlin serialization instead of Jackson....
Read more >Content negotiation and serialization | Ktor
To serialize/deserialize JSON data, you can choose one of the following libraries: kotlinx.serialization, Gson, or Jackson. kotlinx.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks!
You can configure the
JavalinJson
plugin:These will then be used when calling
ctx.json()
orctx.body<MyClass>()
.Ok. Thanks for the quick response. I’ll try it.