jackson-module-kotlin VS kotlinx.serialization

Compare jackson-module-kotlin vs kotlinx.serialization and see what are their differences.

jackson-module-kotlin

Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes. (by FasterXML)

kotlinx.serialization

Kotlin multiplatform / multi-format serialization (by Kotlin)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
jackson-module-kotlin kotlinx.serialization
9 52
1,095 5,063
1.4% 2.2%
9.4 8.5
5 days ago 2 days ago
Kotlin Kotlin
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

jackson-module-kotlin

Posts with mentions or reviews of jackson-module-kotlin. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-19.
  • Jackson, moshi or kotlinx.serialization?
    8 projects | /r/Kotlin | 19 Oct 2022
    Jackson's learning curve is a lot lower (it helps that it's older and more popular, so there's more guides online), and it has a lot more options. However, Jackson doesn't fully support Kotlin, for example: value classes. For this reason, I would avoid it.
    8 projects | /r/Kotlin | 19 Oct 2022
    strictNullCheck option in the Kotlin module doesn't cover non-object-field situations at all. https://github.com/FasterXML/jackson-module-kotlin/issues/479
  • From Java to Kotlin. There and back again
    7 projects | dev.to | 1 Apr 2022
    You should add Jackson Module Kotlin in your project. After that, you can't specify a type of object explicitly.
  • How Cloudflare security responded to log4j2 vulnerability
    3 projects | /r/programming | 11 Dec 2021
    Not really, you just need to handle some standard types and have a good extension mechanism to let the user implement factories. That library having built in support for UUID and datetime is probably a bit much, I'd prefer a plugin like https://github.com/FasterXML/jackson-module-kotlin
  • Ktor vs Spring for creating an API
    2 projects | /r/Kotlin | 2 Sep 2021
    There is a bug at this very moment that makes it literally impossible to deserialize [1, 2, 3, null] into a List with Jackson's Kotlin module. Yes- even if you set KotlinModule(strictNullChecks = true). It's just broken. (Here's the link: https://github.com/FasterXML/jackson-module-kotlin/issues/479)
  • Kotlin Team AMA #3: Ask Us Anything
    52 projects | /r/Kotlin | 27 May 2021
    Got you, thanks. I didn’t mean to sound offensive - a better wording would be that they don’t seem to prioritize this part, at least based on https://github.com/FasterXML/jackson-module-kotlin/issues/199, which has one abandoned branch from a 3rd party and a couple of comments from from maintainers.
  • kotlinx.serialization 1.2 Released: High-Speed JSON Handling, Value Class Support, Overhauled Docs, and more
    5 projects | /r/Kotlin | 7 May 2021
    If you use Jackson, don't forget to include the Kotlin extensions https://github.com/FasterXML/jackson-module-kotlin

kotlinx.serialization

Posts with mentions or reviews of kotlinx.serialization. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-01.

What are some alternatives?

When comparing jackson-module-kotlin and kotlinx.serialization you can also consider the following projects:

Moshi - A modern JSON library for Kotlin and Java.

klaxon - A JSON parser for Kotlin

Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back

spring-native - Spring Native is now superseded by Spring Boot 3 official native support

kotlin-json - A JavaScript Object Notation library for Kotlin JVM.

avro4k - Avro support for kotlinx.serialization

compose-multiplatform - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.

kotlinx-datetime - KotlinX multiplatform date/time library

Kotson

koin - Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform

xmlutil - XML Serialization library for Kotlin