Skip to content
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

Add experimental kotlinx-io core format #2855

Open
hfhbd opened this issue Nov 12, 2024 · 0 comments
Open

Add experimental kotlinx-io core format #2855

hfhbd opened this issue Nov 12, 2024 · 0 comments
Labels

Comments

@hfhbd
Copy link
Contributor

hfhbd commented Nov 12, 2024

What is your use-case and why do you need this feature?
The current experimental kotlinx.io integration is only available for Json, and there is no core kotlinx.io SerialFormat.
But there are many 3rd party formats available that would also benefit from the experimental kotlinx.io integration. But each author needs to integrate the support by itself (mostly by copying the json api).
Additionally, if you want to consume multiple formats with io support, there is no unify function because there is no interface, instead you need to handle every format function manually.

Use-case
I want to use multiple serialization formats with Ktor, that already provides the experimental json-io format, but it is currently limited to Json because there is no core artifact with kotlinx-io integration (yet).

Describe the solution you'd like
Add an experimental SerialFormat that is compatible with kotlinx.io.

This SerialFormat should be a new interface in a new experimental artifact and the json-io implementation should implement it.

Because it is experimental, it is absolutely fine that this new SerialFormat won't be stable.

@hfhbd hfhbd added the feature label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant