JsonBooleanString Class

Converts a nullable boolean (System.Boolean) string to or from JSON.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public class JsonBooleanString : JsonConverter<bool?>
Inheritance
Object    JsonConverter    JsonConverterNullableBoolean    JsonBooleanString

Constructors

JsonBooleanStringInitializes a new instance of the JsonBooleanString class

Properties

HandleNull Gets a value that indicates whether null should be passed to the converter on serialization.
(Overrides JsonConverterTHandleNull)

Methods

ReadReads and converts the JSON to a nullable boolean.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
WriteWrites a specified value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))

See Also