Newtonsoft.Json’s converter was the .NET
de facto default, until .NET Core 3.0. Qowaiv does not have out-of-the-box
support for Newtonsoft, but with the Qowaiv.Json.Newtonsoft package, seamless
integration can be added.
dotnet add package Qowaiv.Json.Newtonsoft
To globally register the converter:
QowaivJsonConverter.Register();
Or, if you work with .NET core Web API:
dotnet add package Microsoft.AspNetCore.Mvc.NewtonsoftJson
using Qowaiv.Json.Newtonsoft;
public class Startup
{
public void ConfigureServices(IServiceCollection services) => services
.AddMvc()
.AddNewtonsoftJson(options =>
{
options.SerializerSettings.Converters.Add(new QowaivJsonConverter());
});
}