XDev.KotlinX.Serialization.Json.Io
1.8.1.1
dotnet add package XDev.KotlinX.Serialization.Json.Io --version 1.8.1.1
NuGet\Install-Package XDev.KotlinX.Serialization.Json.Io -Version 1.8.1.1
<PackageReference Include="XDev.KotlinX.Serialization.Json.Io" Version="1.8.1.1" />
<PackageVersion Include="XDev.KotlinX.Serialization.Json.Io" Version="1.8.1.1" />
<PackageReference Include="XDev.KotlinX.Serialization.Json.Io" />
paket add XDev.KotlinX.Serialization.Json.Io --version 1.8.1.1
#r "nuget: XDev.KotlinX.Serialization.Json.Io, 1.8.1.1"
#:package XDev.KotlinX.Serialization.Json.Io@1.8.1.1
#addin nuget:?package=XDev.KotlinX.Serialization.Json.Io&version=1.8.1.1
#tool nuget:?package=XDev.KotlinX.Serialization.Json.Io&version=1.8.1.1
Introduction
Nuget packaging for the kotlinx-serialization-json-io native kotlin library. This package is named
XDev.KotlinX.Serialization.Json.Io and wraps org.jetbrains.kotlinx:kotlinx-serialization-json-io (both the
common and -jvm Kotlin-multiplatform variants) — the bridge that lets kotlinx-serialization encode/decode
JSON directly to/from kotlinx-io Source/Sink streams. The "XDev" root in the package name allows room
for JetBrains/Microsoft to publish an official NuGet package in the future, and allows simple replacement of
this one for that one, if that ever occurs.
kotlinx-serialization-json-io is a transitive requirement of ktor-serialization-kotlinx-json in Ktor 3
(the new IO refactor); no existing NuGet wrapper carries it, so this package fills that gap. It depends on the
published XDev.KotlinX.IO package for the kotlinx-io-core
dependency, plus the official Xamarin.KotlinX.Serialization.* packages.
Latest release <a href="https://www.nuget.org/packages/XDev.KotlinX.Serialization.Json.Io"> <img src="https://img.shields.io/nuget/v/XDev.KotlinX.Serialization.Json.Io"></a>
Latest build <a href="https://www.nuget.org/packages/XDev.KotlinX.Serialization.Json.Io"> <img src="https://img.shields.io/nuget/vpre/XDev.KotlinX.Serialization.Json.Io"></a>
source repo
<br>
The native lib in maven:
native repo: https://github.com/Kotlin/kotlinx.serialization
Getting Started
To use this nuget package, just install the desired version as you normally install nuget packs.
- Note this repo repackages the
kotlinx-serialization-json-iojars into.aarfiles to support android. - It depends on the published
XDev.KotlinX.IOandXamarin.KotlinX.Serialization.*packages.
Build and Test
- VS 2022 or higher.
- .Net8 SDK required to build.
- This project uses XDev.Android.MavenBinding.Tasks to aid pulling in the native jar-libs directly from maven. See here for more info: https://github.com/jpobst/Prototype.Android.MavenBindings
https://learn.microsoft.com/en-us/dotnet/android/features/maven/android-maven-library
Versions
- v1.7.3 (the nuget package tracks the native version, sans pre-release)
- https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-json-io
Contribute
If you need a different/newer version, PR, or open an issue in the .Net repo! https://dev.azure.com/xdevapps/Android%20bindings/_git/XDev.Jetbrains.InteropLibs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-android34.0 is compatible. net9.0-android was computed. net10.0-android was computed. |
-
net8.0-android34.0
- Xamarin.Kotlin.StdLib (>= 2.1.21)
- Xamarin.KotlinX.Serialization.Core (>= 1.8.1)
- Xamarin.KotlinX.Serialization.Core.Jvm (>= 1.8.1)
- Xamarin.KotlinX.Serialization.Json (>= 1.8.1)
- Xamarin.KotlinX.Serialization.Json.Jvm (>= 1.8.1)
- XDev.KotlinX.IO (>= 0.6.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on XDev.KotlinX.Serialization.Json.Io:
| Package | Downloads |
|---|---|
|
XDev.IO.Ktor
Ktor is an asynchronous framework for creating microservices, web applications and more. Written in Kotlin from the ground up. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Wraps kotlinx-serialization-json-io (the JSON <-> kotlinx-io bridge), a new sibling of
kotlinx-serialization-json required transitively by Ktor 3's ktor-serialization-kotlinx-json. Depends on
the published XDev.KotlinX.IO package and the official Xamarin.KotlinX.Serialization.* packages so that
we're compatible with Maui-targeted apps.