Skip to content

Commit b64cff3

Browse files
Update README.md
1 parent 0ac43a9 commit b64cff3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
# Open.Serialization
22
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**.
27+
28+
29+

0 commit comments

Comments
 (0)