<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />

JsonLoadSettings

public class JsonLoadSettings
Specifies the settings used when loading JSON.
public CommentHandling CommentHandling { get; set; }

Gets or sets how JSON comments are handled when loading JSON. The default value is Ignore.

Gets or sets how duplicate property names in JSON objects are handled when loading JSON. The default value is Replace.

public LineInfoHandling LineInfoHandling { get; set; }

Gets or sets how JSON line info is handled when loading JSON. The default value is Load.

Initializes a new instance of the JsonLoadSettings class.