kotlinx.serialization

Kotlin multiplatform / multi-format serialization (by Kotlin)

Kotlinx.serialization Alternatives

Similar projects and alternatives to kotlinx.serialization

  1. KEEP

    Kotlin Evolution and Enhancement Process (by Kotlin)

  2. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  3. kotlinx.coroutines

    Library support for Kotlin coroutines

  4. ktor

    Framework for quickly creating connected applications in Kotlin with minimal effort

  5. OkHttp

    A meticulous HTTP client for the JVM, Android, and GraalVM.

  6. Retrofit

    A type-safe HTTP client for Android and the JVM

  7. Jackson JSON Processor

    Main Portal page for the Jackson project

  8. SaaSHub

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

    SaaSHub logo
  9. koin

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

  10. Moshi

    A modern JSON library for Kotlin and Java.

  11. jackson-module-kotlin

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

  12. kotlin-wrappers

    Kotlin wrappers for popular JavaScript libraries

  13. kotlindl

    High-level Deep Learning Framework written in Kotlin and inspired by Keras

  14. glide

    An image loading and caching library for Android focused on smooth scrolling

  15. Coil

    Image loading for Android and Compose Multiplatform.

  16. timber

    A logger with a small, extensible API which provides utility on top of Android's normal Log class.

  17. klaxon

    A JSON parser for Kotlin

  18. ktlint

    An anti-bikeshedding Kotlin linter with built-in formatter

  19. kotlin-json

    A JavaScript Object Notation library for Kotlin JVM.

  20. Picasso

    A powerful image downloading and caching library for Android

  21. SaaSHub

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

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

kotlinx.serialization discussion

Log in or Post with

kotlinx.serialization reviews and mentions

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 2026-05-18.
  • From Closures to an AST in a Kotlin Transform Graph
    3 projects | dev.to | 18 May 2026
    Mirror the same shape for BoolExpr (Gt, Lt, And, Or, Not, InRange, etc.) and VectorExpr for the cases where the output is a vector of arbitrary length, not a scalar. Each node is @Serializable with a @SerialName discriminator, so kotlinx.serialization round-trips the whole tree polymorphically. The leaves X, Y, and V(i) are placeholders that get bound to the current input when eval runs.
  • MVI as a Unifying Architecture Pattern Across KMP, SwiftUI, and Compose: Implementing a Shared State Machine
    2 projects | dev.to | 10 Mar 2026
    The docs do not mention this, but this also solves deep-link handling — deserialize the target state and initialize your store with it. ## Gotchas **Do not share ViewModels.** ViewModels carry lifecycle semantics from `androidx.lifecycle` or `ObservableObject`. Share the state machine layer underneath instead. **Encode side effects as data.** Returning `List` from the reducer instead of launching coroutines inline keeps it testable. The moment you call `launch` inside a reducer, you have lost the purity guarantee. **Handle exhaustive `when` branches.** Kotlin enforces this for sealed interfaces, but forgetting a new intent variant after adding one is the most common source of bugs during feature growth. Enable the `when` exhaustiveness compiler warning. **SKIE vs KMP-NativeCoroutines.** Pick one approach for bridging `StateFlow` to Swift and stick with it. Mixing both in the same project leads to confusing cancellation behavior. ## Conclusion The pattern is: share the state machine, not the ViewModel. Keep your reducer and state types in `commonMain` as pure Kotlin. Let each platform own its thin view-binding layer. That boundary minimizes coupling while maximizing code reuse — in our case, 60-70% of feature code lives in shared modules. I have tried half a dozen shared-UI architectures at this point. MVI is the one still standing after a year in production. Start with one feature, prove it works for your team, and expand from there. **Resources:** - [Kotlin Multiplatform docs](https://kotlinlang.org/docs/multiplatform.html) - [SKIE for Swift interop](https://skie.touchlab.co/) - [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization)
  • 2025년에 안드로이드 앱을 만들기
    14 projects | dev.to | 10 Mar 2025
  • JSON5 – JSON for Humans
    21 projects | news.ycombinator.com | 8 Dec 2024
    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

  • How would I serialize a JSON primitive to a class?
    2 projects | /r/Kotlin | 1 Jul 2023
    Have you tried this:? https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md
  • kotlinx-serialization won't serialize a List?
    1 project | /r/Kotlin | 16 Jun 2023
    Regardless, I followed the documentation to register List for polymorphic serialization and my static code analysis does not seem to be happy with it.
  • Is rust serde unique?
    6 projects | /r/rust | 19 Apr 2023
    I think kotlinx.serialization might come close, but looks like custom Encoders and Decoders are still experimental.
  • [Android/Multiplatform] Kotlin Flows + Ktor = Flawless HTTP requests (- ArrowKt)
    1 project | /r/androiddev | 15 Mar 2023
    This example will not work on a multiplatform project. you are using gson, gson runs only on jvm, you should use https://github.com/Kotlin/kotlinx.serialization for the json parsing
  • Why should I use kotlinx.serialization?
    4 projects | /r/Kotlin | 24 Feb 2023
    This is the issue to +1 https://github.com/Kotlin/kotlinx.serialization/issues/1931
  • Generate Kotlin client for a complex web API
    7 projects | dev.to | 9 Feb 2023
  • A note from our sponsor - AppSignal
    www.appsignal.com | 11 Oct 2026
    Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise. Learn more →

Stats

Basic kotlinx.serialization repo stats
56
5,950
8.5
2 days ago

Sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com

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