Skip to main content

FlexibleGuidJsonConverter.Read method

Reads a GUID from the current JSON string value.

public override Guid Read(ref Utf8JsonReader reader, Type typeToConvert,
JsonSerializerOptions options)
parameterdescription
readerThe JSON reader positioned at the value to convert.
typeToConvertThe target type for conversion.
optionsThe serializer options for the conversion.

Return Value​

The parsed GUID.

Exceptions​

exceptioncondition
JsonExceptionThe string cannot be parsed as a GUID.

See Also​