Skip to content

Make collections serializable with kotlinx.serialization #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jfontsaballs opened this issue Dec 27, 2022 · 2 comments
Closed

Make collections serializable with kotlinx.serialization #138

jfontsaballs opened this issue Dec 27, 2022 · 2 comments

Comments

@jfontsaballs
Copy link

The title explains the requested functionality quite clearly.

My use case is that I'm passing information between a Ktor server and a KotlinJS client. I have a shared data model in a multiplatform module and I send and receive data between server and client by serializing classes to JSON and sending it via HTTP calls. I'm using kotlinx.serialization for serialization and deserialization. The classes in the shared module are designed to be immutable and I thought the using immutable collections would just fit nicely until I discovered that they can't be serialized.

Right now I'm using regular Kotlin collections but modifications are more difficult.

@JakeWharton
Copy link

Duplicate of #63

@jfontsaballs
Copy link
Author

Duplicate of #63

@jfontsaballs jfontsaballs closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants