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

DuplicatePropertyNameHandling

Specifies how duplicate property names are handled when loading JSON.
Error = 2

Throw a JsonReaderException when a duplicate property is encountered.

Ignore = 1

Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used.

Replace = 0

Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used.