Microsoft.AspNetCore.Mvc.NewtonsoftJson by Microsoft

<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.0-preview.4.20257.10" />

 MvcNewtonsoftJsonOptions

public class MvcNewtonsoftJsonOptions : IEnumerable<ICompatibilitySwitch>, IEnumerable
Provides programmatic configuration for JSON formatters using Newtonsoft.JSON.
public bool AllowInputFormatterExceptionMessages { get; set; }

Gets or sets a flag to determine whether error messages from JSON deserialization by the NewtonsoftJsonInputFormatter will be added to the ModelStateDictionary. If false, a generic error message will be used instead.

Gets the JsonSerializerSettings that are used by this application.