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

JsonExtensionDataAttribute

Instructs the JsonSerializer to deserialize properties with no matching class member into the specified collection and write values during serialization.
public bool ReadData { get; set; }

Gets or sets a value that indicates whether to read extension data when deserializing the object.

public bool WriteData { get; set; }

Gets or sets a value that indicates whether to write extension data when serializing the object.

Initializes a new instance of the JsonExtensionDataAttribute class.