JsonConverter<T>
Converts an object or value to or from JSON.
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)
Read and convert the JSON to T.
public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Reads a dictionary key from a JSON property name.
Write the value as JSON.
public virtual void WriteAsPropertyName(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
Writes a dictionary key as a JSON property name.