<PackageReference Include="newtonsoft.json" Version="3.5.8" />

JsonConverter

public abstract class JsonConverter
Converts an object to and from JSON.
public virtual bool CanRead { get; }

Gets a value indicating whether this JsonConverter can read JSON.

public virtual bool CanWrite { get; }

Gets a value indicating whether this JsonConverter can write JSON.

protected JsonConverter()

public abstract bool CanConvert(Type objectType)

Determines whether this instance can convert the specified object type.

public virtual JsonSchema GetSchema()

Gets the JsonSchema of the JSON produced by the JsonConverter.

public abstract object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

Reads the JSON representation of the object.

public abstract void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)

Writes the JSON representation of the object.