Jackson, moshi or kotlinx.serialization?

This page summarizes the projects mentioned and recommended in the original post on /r/Kotlin

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • jackson-module-kotlin

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

  • 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.

  • ktoml

    Kotlin Multiplatform parser and compile-time serializer/deserializer for TOML format (Native, JS, JVM) based on KxS

  • Kotlinx serialization is so elegant and nice, I really love it. I love it so much that I spent some time on making toml serialization library based on it: https://github.com/akuleshov7/ktoml

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • kotlinx.serialization

    Kotlin multiplatform / multi-format serialization

  • ``` see the docs

  • kotshi

    An annotation processor that generates Moshi adapters from immutable Kotlin data classes.

  • http4k

    The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.

  • kotlinx-serialization-typescript-generator

    KxsTsGen :: Generate TypeScript interfaces from Kotlin classes

  • jackson-modules-base

    Uber-project for foundational modules of Jackson that build directly on core components but nothing else; not including data format or datatype modules

  • Jackson also has some module (https://github.com/FasterXML/jackson-modules-base/tree/master/afterburner) which will generate bytecode at runtime to do serialization without reflection but I haven't really had any performance issues with it that made me want to even try it

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts