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
Regarding JSON serializer, I see that FaunaDB.Client is using Newtonsoft.Json !!
Check out the System.Text.Json package, I highly recommend using it, it is Fast plus it's owned and maintained by Microsoft.
Starting ASP.NET Core 3.1, System.Text.Json is the default JSON Serializer, and Newtonsoft.Json will be removed starting .NET 5.
The text was updated successfully, but these errors were encountered:
Actually, it might be best if this is optional. You could use System.Text.Json by default, but you should allow to configure Newtonsoft.Json as an alternative. Microsoft's serializer has some issues, such as not supporting polymorphic deserialization (and limited serialization).
and Newtonsoft.Json will be removed starting .NET 5.
While Microsoft's serializer is the default (for obvious reasons), one can still use Newtonsoft.Json on ASP.NET projects. You just need to include the package Microsoft.AspNetCore.Mvc.NewtonsoftJson and when setting up the controllers on startup do this
services.AddControllers().AddNewtonsoftJson();
So... Newtonsoft's serializer isn't going anywhere just yet and much less while the polymorphic serialization issues prevail. And since that was a design decision, even less.
Hi,
Regarding JSON serializer, I see that
FaunaDB.Client
is usingNewtonsoft.Json
!!Check out the
System.Text.Json
package, I highly recommend using it, it is Fast plus it's owned and maintained by Microsoft.Starting ASP.NET Core 3.1,
System.Text.Json
is the default JSON Serializer, andNewtonsoft.Json
will be removed starting .NET 5.The text was updated successfully, but these errors were encountered: