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

DuplicatePropertyNameHandling

Specifies how duplicate property names are handled when loading JSON.
namespace Newtonsoft.Json.Linq { public enum DuplicatePropertyNameHandling { Replace, Ignore, Error } }