Open.Serialization.Json 3.0.0

.NET Standard 2.0
dotnet add package Open.Serialization.Json --version 3.0.0
NuGet\Install-Package Open.Serialization.Json -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Open.Serialization.Json" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Open.Serialization.Json --version 3.0.0
#r "nuget: Open.Serialization.Json, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Open.Serialization.Json as a Cake Addin
#addin nuget:?package=Open.Serialization.Json&version=3.0.0

// Install Open.Serialization.Json as a Cake Tool
#tool nuget:?package=Open.Serialization.Json&version=3.0.0


DI/IoC agnostic interfaces for injecting any serialization library.


With the following libraries, you can build other libraries that sever their dependency from any serializer and allow you to inject whichever you want. You can also easily integrate another serializer and still retain the DI/IoC happiness.

Core Interfaces & Extensions
NuGet Core package for serializing anything.
NuGet Core package specific to JSON.

Library/Vendor Specific Implementations


The following libs contain support for Microsoft.Extensions.DependencyInjection.
Import any of these and you can use the above extension to inject default serializers.
NuGet Extensions and DI for Newtonsoft.Json.
NuGet Extensions and DI for System.Text.Json. Note: There is no IJsonObjectSerializer option for System.Text.Json.
NuGet Extensions and DI for Utf8Json.

Interface & Methods Exposed

T IDeserialize.Deserialize<T>(string value);
T IDeserialize<T>.Deserialize(string value);
object IDeserializeObject.Deserialize(string value, Type type);

ValueTask<T> IDeserializeAsync.DeserializeAsync<T>(Stream source, CancellationToken cancellationToken = default);
ValueTask<T> IDeserializeAsync<T>.DeserializeAsync(Stream source, CancellationToken cancellationToken = default);
ValueTask<object> IDeserializeObjectAsync.DeserializeAsync(Stream source, Type type, CancellationToken cancellationToken = default);

string ISerialize.Serialize<T>(T item);
string ISerialize<T>.Serialize(T item);
string ISerializeObject.Serialize(object item, Type type);

ValueTask ISerializeAsync.SerializeAsync<T>(Stream target, T item, CancellationToken cancellationToken = default);
ValueTask ISerializeAsync<T>.SerializeAsync(Stream target, T item, CancellationToken cancellationToken = default);
ValueTask ISerializeObjectAsync.SerializeAsync(Stream target, object item, Type type, CancellationToken cancellationToken = default);
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Open.Serialization.Json:

Package Downloads

Extentions and DI utilities for System.Text.Json. Part of the "Open" set of libraries.


Extentions and DI utilities for Utf8Json. Part of the "Open" set of libraries.


Extentions and DI utilities for Newtonsoft.Json. Part of the "Open" set of libraries.


Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 8,224 5/23/2022
2.3.1 221,542 7/18/2020
2.2.2 115,366 1/12/2020
1.4.0 55,725 12/17/2019
1.2.2 15,790 10/31/2019