Microsoft.AspNetCore.Mvc.NewtonsoftJson by Microsoft

<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0-preview.3.21201.13" />

 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.

public int InputFormatterMemoryBufferThreshold { get; set; }

Gets the maximum size to buffer in memory when SuppressInputFormatterBuffering is not set.

NewtonsoftJsonInputFormatter buffers the input stream by default, buffering up to a certain amount in memory, before buffering to disk. This option configures the size in bytes that MVC will buffer in memory, before switching to disk.

Gets the JsonSerializerSettings that are used by this application.