You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DI/IoC agnostic interfaces for injecting any serialization library.
3
+
4
+
## Implementation
5
+
6
+
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.
7
+
8
+
### Core Interfaces & Extensions
9
+
10
+
[https://www.nuget.org/packages/Open.Serialization/](https://www.nuget.org/packages/Open.Serialization/) Core package for serializing anything.
11
+
12
+
[https://www.nuget.org/packages/Open.Serialization.Json/](https://www.nuget.org/packages/Open.Serialization.Json/) Core package specific to JSON.
13
+
14
+
### Library/Vendor Specific Implementations
15
+
16
+
```cs
17
+
services.AddJsonSerializer();
18
+
```
19
+
20
+
The following libs contain support for `Microsoft.Extensions.DependencyInjection`. Import any of these and you can use the above extension to inject default serializers.
21
+
22
+
[https://www.nuget.org/packages/Open.Serialization.Json.Newtonsoft/](https://www.nuget.org/packages/Open.Serialization.Json.Newtonsoft/) Extensions and DI for **Newtonsoft.Json**.
23
+
24
+
[https://www.nuget.org/packages/Open.Serialization.Json.System/](https://www.nuget.org/packages/Open.Serialization.Json.System/) Extensions and DI for **System.Text.Json**. Note: There is no option for `IJsonObjectSerializer` for `System.Text.Json`.
25
+
26
+
[https://www.nuget.org/packages/Open.Serialization.Json.Utf8Json](https://www.nuget.org/packages/Open.Serialization.Json.Utf8Json) Extensions and DI for **Utf8Json**.
0 commit comments