assistant.net.serialization.json
0.3.125
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package assistant.net.serialization.json --version 0.3.125
NuGet\Install-Package assistant.net.serialization.json -Version 0.3.125
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="assistant.net.serialization.json" Version="0.3.125" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add assistant.net.serialization.json --version 0.3.125
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: assistant.net.serialization.json, 0.3.125"
#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 assistant.net.serialization.json as a Cake Addin #addin nuget:?package=assistant.net.serialization.json&version=0.3.125 // Install assistant.net.serialization.json as a Cake Tool #tool nuget:?package=assistant.net.serialization.json&version=0.3.125
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
assistant.net.serialization.json
Generic serialization mechanism with flexible type/format configuration. The only implementation for JSON for now. Further it will be extended with other formats, e.g. protobuf.
Typed serializer
using var provider = new ServiceCollection()
.AddSerializer(b => b
.AddJsonType<SomeModel>()
.AddJsonTypeAny())
.BuildServiceProvider();
var serializer1 = provider.GetRequiredService<ISerializer<SomeModel>>();
var serializer2 = provider.GetRequiredService<ISerializer<AnotherModel>>();
Serializer factory
using var provider = new ServiceCollection()
.AddSerializer(b => b
.AddJsonType<SomeModel>()
.AddJsonTypeAny())
.BuildServiceProvider();
var factory = provider.GetRequiredService<ISerializerFactory>();
var objectSerializer1 = factory.Create(typeof(SomeModel));
var objectSerializer1 = factory.Create(typeof(AnotherModel));
Configuration
using var provider = new ServiceCollection()
.AddSerializer(delegate { })
.ConfigureSerializer(delegate { })
.ConfigureJsonOptions(delegate { })
.BuildServiceProvider();
var factory = provider.GetRequiredService<ISerializerFactory>();
var objectSerializer1 = factory.Create(typeof(SomeModel));
var objectSerializer1 = factory.Create(typeof(AnotherModel));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- assistant.net.core (>= 0.3.125)
- Microsoft.Extensions.Configuration (>= 6.0.1)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 6.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on assistant.net.serialization.json:
Package | Downloads |
---|---|
assistant.net.storage
A common storage abstraction, tools and its basic local (in-memory) implementation. |
|
assistant.net.messaging
Local (in-memory) message handling implementation. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.182 | 787 | 5/8/2023 |
0.4.151 | 826 | 3/28/2023 |
0.4.145 | 883 | 3/22/2023 |
0.4.144 | 2,452 | 9/4/2022 |
0.4.140 | 2,425 | 8/13/2022 |
0.3.139 | 2,440 | 8/9/2022 |
0.3.138 | 2,419 | 8/7/2022 |
0.3.137 | 2,386 | 8/6/2022 |
0.3.135 | 2,261 | 7/14/2022 |
0.3.133 | 2,282 | 7/4/2022 |
0.3.127 | 2,292 | 6/26/2022 |
0.3.125 | 2,287 | 6/25/2022 |
0.3.123 | 2,355 | 6/23/2022 |
0.3.121 | 2,288 | 6/22/2022 |
0.3.119 | 2,250 | 6/20/2022 |