https://www.abhayachauhan.com/2017/10/fuzzy-serializer/
This library can be plugged into the MvcPipeline which enables you to "Fuzzy" the Json response on API calls.
PageUp.FuzzySerializer is a ContractResolver for Newtonsoft.Json.
Set up FuzzyObjectContractResolver
in the Configure
method on your Startup
file.
public IServiceProvider ConfigureServices(IServiceCollection services)
{
services.AddMvc().AddJsonOptions(options =>
{
options.SerializerSettings.ContractResolver = new FuzzyObjectContractResolver(new FuzzyObjectContractResolverSettings());
});
}
The package is hosted in NuGet. Currently, the package version has to be incremented manually, and the package manually uploaded to NuGet gallery.