Skip to content

Commit 3022a99

Browse files
committed
Add project overview
1 parent 426bccd commit 3022a99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
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/).
77

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.
11+
812
## Performance
913

1014
``` ini

0 commit comments

Comments
 (0)