Kotlin Serialization

Open-source Kotlin projects categorized as Serialization

Top 9 Kotlin Serialization Projects

Serialization
  1. kotlinx.serialization

    Kotlin multiplatform / multi-format serialization

    Project mention: JSON5 – JSON for Humans | news.ycombinator.com | 2024-12-08

    Good API design dictates that you should be flexible as to what you accept and strict about what you serve. Being flexible doesn't really break anything.

    Elasticsearch and Opensearch both actually have partial support for JSON5 (comments), which is a nice feature if you want to document e.g. a complex query or mapping choice. It won't return any comments in the response. So it won't break other parsers. Implementing JSON 5 support like this is a valid thing to do for any server. More broad support for this in parsers would be nice.

    I'd probably enable this on my own servers if this was possible. I'd need that to be supported in kotlinx.serialization. See discussion on this here: https://github.com/Kotlin/kotlinx.serialization/issues/797

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. jackson-module-kotlin

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

  4. kaml

    YAML support for kotlinx.serialization

  5. ktoml

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

  6. xmlutil

    XML Serialization library for Kotlin

  7. avro4k

    Avro format support for Kotlin

  8. knbt

    Kotlin NBT library for kotlinx.serialization

  9. kbson

    Mongo BSON support for kotlinx.serialization.

  10. Packable

    An effective and well designed serialization framework.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Kotlin Serialization discussion

Log in or Post with

Kotlin Serialization related posts

  • How would I serialize a JSON primitive to a class?

    2 projects | /r/Kotlin | 1 Jul 2023
  • kotlinx-serialization won't serialize a List?

    1 project | /r/Kotlin | 16 Jun 2023
  • Ktoml 0.5.0 released 🎉

    1 project | /r/Kotlin | 13 May 2023
  • [Android/Multiplatform] Kotlin Flows + Ktor = Flawless HTTP requests (- ArrowKt)

    1 project | /r/androiddev | 15 Mar 2023
  • How to parse XML in Kotlin?

    2 projects | /r/Kotlin | 27 Feb 2023
  • Why should I use kotlinx.serialization?

    4 projects | /r/Kotlin | 24 Feb 2023
  • Question about app weight... I want to use Apache commons math3, should I fork it and "crop" it to reduce compile times and app weight?

    1 project | /r/androiddev | 27 Jan 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Jan 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Serialization projects in Kotlin? This list will help you:

# Project Stars
1 kotlinx.serialization 5,485
2 jackson-module-kotlin 1,129
3 kaml 528
4 ktoml 465
5 xmlutil 391
6 avro4k 201
7 knbt 80
8 kbson 41
9 Packable 33

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Kotlin is
the 17th most popular programming language
based on number of references?