Class KeyOrderedDictionaryInterfaceConverter<TKey, TValue>
The same for a property declared as IDictionary with a simple key; it reads a Dictionary.
public class KeyOrderedDictionaryInterfaceConverter<TKey, TValue> : JsonConverter<IDictionary<TKey, TValue>> where TKey : notnull
Inheritance
Object→JsonConverter→IDictionary{{TKey},{TValue}}}→KeyOrderedDictionaryInterfaceConverter<TKey, TValue>
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type .
public override IDictionary<TKey, TValue>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Write(Utf8JsonWriter, IDictionary<TKey, TValue>?, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, IDictionary<TKey, TValue>? value, JsonSerializerOptions options)