-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Text.Json does not serialize most of the properties that Newtonsoft does. #45764
Comments
Here's the type being serialized: https://github.com/graphql-dotnet/parser/blob/master/src/GraphQLParser/AST/GraphQLDocument.cs Looks to me like this contains a |
Whatever the reason is, the effect means that i cant trust the System.Text.Json package to handle serialization properly. I cant use something like that. |
Then you should up vote the requests about this, to show your interest #45189 otherwise we won't get support for it in .NET 6. Because .NET team believes this is an edge case scenario, when it isn't. |
Upvotes help. This one is on our radar for .NET 6.0. https://themesof.net/?q=Polymorphic%20is:open%20kinds:teui /cc @terrajobst |
Closing as a dup of #29937. |
Im trying to use the new Json package and finding its doing an incomplete job. I checked the MaxDepth and its using the default of 99. Why wont this serialize correctly?
This RoslynPad example will illustrate
the first result is
the second is
The text was updated successfully, but these errors were encountered: