public OptionJsonConverter()Initializes a new converter using the JsonSerializerOptions passed at read/write time.
All Types / Ferrous.Results
public sealed class OptionJsonConverter<T> : JsonConverter<Option<T>>
NativeAOT-compatible JsonConverter<T> for Option<T>. Serializes Some(v) directly as v and None as JSON null.
Tpublic OptionJsonConverter()Initializes a new converter using the JsonSerializerOptions passed at read/write time.
public OptionJsonConverter(JsonTypeInfo<T> typeInfo)Initializes a new NativeAOT-safe converter using an explicit JsonTypeInfo<T>.
typeInfoJsonTypeInfo<T> for T.public override bool HandleNullpublic override Option<T> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)public override void Write(Utf8JsonWriter writer, Option<T> value, JsonSerializerOptions options)