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

JsonContract

public abstract class JsonContract
Contract details for a Type used by the JsonSerializer.
public JsonConverter Converter { get; set; }

Gets or sets the default JsonConverter for this contract.

public Type CreatedType { get; set; }

Gets or sets the type created during deserialization.

public Func<object> DefaultCreator { get; set; }

Gets or sets the default creator method used to create the object.

public bool DefaultCreatorNonPublic { get; set; }

Gets or sets a value indicating whether the default creator is non public.

public bool? IsReference { get; set; }

Gets or sets whether this type contract is serialized as a reference.

public MethodInfo OnDeserialized { get; set; }

Gets or sets the method called immediately after deserialization of the object.

public MethodInfo OnDeserializing { get; set; }

Gets or sets the method called during deserialization of the object.

public MethodInfo OnError { get; set; }

Gets or sets the method called when an error is thrown during the serialization of the object.

public MethodInfo OnSerialized { get; set; }

Gets or sets the method called after serialization of the object graph.

public MethodInfo OnSerializing { get; set; }

Gets or sets the method called before serialization of the object.

public Type UnderlyingType { get; }

Gets the underlying type for the contract.