JsonConverter<T>
Converts an object or value to or from JSON.
Gets a value that indicates whether null should be passed to the converter on serialization, and whether Null should be passed on deserialization.
public abstract T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Reads and converts the JSON to type T.
public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Reads a dictionary key from a JSON property name.
Writes a specified value as JSON.
public virtual void WriteAsPropertyName(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
Writes a dictionary key as a JSON property name.