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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@
5
5
6
6
This library provides support for [Google.Protobuf](https://www.nuget.org/packages/Google.Protobuf) types to [System.Text.Json](https://www.nuget.org/packages/System.Text.Json/).
7
7
8
+
By default classes generated from `*.proto` files don't work particularly well with `System.Text.Json`. You can properly serialize and deserialize only very simple contracts (only scalar value types work properly). When your schema contains some more advanced structures like repeated fields, maps, oneofs, or optional fields the results are far from acceptable.
9
+
10
+
You may try to write a custom JsonConverter that will utilize `Google.Protobuf.JsonFormatter` and `Google.Protobuf.JsonParser` 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.
0 commit comments