Kotlin multiplatform / multi-format serialization (by Kotlin)


Basic kotlinx.serialization repo stats
2 days ago

Kotlin/kotlinx.serialization is an open source project licensed under Apache License 2.0 which is an OSI approved license.

Kotlinx.serialization Alternatives

Similar projects and alternatives to kotlinx.serialization

  • GitHub repo kotlin

    The Kotlin Programming Language

  • GitHub repo Gson

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

  • GitHub repo Lombok

    Very spicy additions to the Java programming language.

  • GitHub repo Moshi

    A modern JSON library for Kotlin and Java.

  • GitHub repo jackson-module-kotlin

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

  • GitHub repo kotlin-wrappers

    Kotlin wrappers for popular JavaScript libraries

  • GitHub repo Persistent Collection

    A Persistent Java Collections Library

  • GitHub repo avro4k

    Avro support for kotlinx.serialization

  • GitHub repo amber-docs


  • GitHub repo cbor-java

    Java implementation of RFC 7049: Concise Binary Object Representation (CBOR)

  • GitHub repo openjdk-proposals

    A place for Microsoft's Java Engineering Group to put OpenJDK JEPs and/or patches before we submit to OpenJDK

  • GitHub repo Lavalink.kt

    Coroutine based client for Lavalink (Kotlin and Java)

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better kotlinx.serialization alternative or higher similarity.


Posts where kotlinx.serialization has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-05-09.
  • Newbie to android studio
    Sounds like you want Kotlin JSON deserialization. Off the top of my head, I'd recommend looking up https://github.com/Kotlin/kotlinx.serialization and https://github.com/square/moshi.
  • kotlinx.serialization 1.2 released
    Neat! Although I want to use it, I'm still a bit disappointed that this is still on the waiting list and have to wait until then.
  • Why Java's Records Are Better* Than Lombok's Data and Kotlin's Data Classes
    news.ycombinator.com | 2021-05-07
  • kotlinx.serialization 1.2 Released: High-Speed JSON Handling, Value Class Support, Overhauled Docs, and more
    reddit.com/r/Kotlin | 2021-05-07
    Going by [https://github.com/Kotlin/kotlinx.serialization/blob/fc9343f06c5184d51df9ad1006d26c60c3230c2a/core/commonMain/src/kotlinx/serialization/encoding/Encoding.kt#L209-L230](this), it looks like serializing a @JvmInline @Serializable class with e.g. an Int property will compile as compositeEncoder.encodeInline(...).encodeInt(...). So statically it'll know to encode an Int value
    reddit.com/r/Kotlin | 2021-05-07
    Someone already implemented it. Full list of supported formats can be found here.
    reddit.com/r/Kotlin | 2021-05-07
    The overhauled docs part really got me excited because I pushed an issue about buildClassSerialDescriptor and its docs kinda not being right here.
  • KotlinX Serialization Release 1.2.0
    Changes: https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.2.0
    reddit.com/r/Kotlin | 2021-04-28
  • Nested serialization with JsonContentPolymorphicSerializer, how does it work?
    reddit.com/r/Kotlin | 2021-04-22
    I took my information from a similar page, but except it was the JSON one.
  • Migrating our Kotlin/JS app to the new IR compiler
    dev.to | 2021-03-09
    Luckily, all the libraries we are using in the project (including Ktor Clients and kotlinx.serialization) already support the Kotlin/JS IR compiler, and they provide artifacts that work with both backends. And there is a number of other libraries that already offer artifacts compatible with the IR compiler, like fritz2, KorGE, Kodein-DI, and more.
  • How to de/serialize a List<Any?> with Kotlin Serialization?
    reddit.com/r/Kotlin | 2021-03-05
  • Cannot use @Parcelize on inline class
    reddit.com/r/Kotlin | 2021-02-08
  • Kotlin 1.4.30 Release
    reddit.com/r/Kotlin | 2021-02-03
    It has been released yesterday: https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.1.0-RC