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
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,38 @@ By default classes generated from *.proto files don't work particularly well wit
9
9
10
10
You may try to write a custom JsonConverter that will utilize JsonFormatter and JsonParser from Google.Protobuf package to do all the heavy lifting. Unfortunately, this solution falls short in terms of performance. This library provides high-performance and low-allocating types that serialize Google.Protobuf objects to JavaScript Object Notation (JSON) text and deserialize JSON text to Google.Protobuf objects.
11
11
12
+
## Quickstart
13
+
14
+
Add `Protobuf.System.Text.Json` NuGet package to your project using dotnet CLI:
15
+
16
+
```
17
+
dotnet add package Protobuf.System.Text.Json
18
+
```
19
+
20
+
To enable Protobuf support you need to register it on `JsonSerializerOptions`:
0 commit comments