Skip to content

HierarchicalKeyJsonConverter.WriteAsPropertyName(Utf8JsonWriter, HierarchicalKey, JsonSerializerOptions)

WriteAsPropertyName(Utf8JsonWriter, HierarchicalKey, JsonSerializerOptions)

override
View source
public override void WriteAsPropertyName(Utf8JsonWriter writer, HierarchicalKey value, JsonSerializerOptions options)
Writes a dictionary key as a JSON property name.

Parameters

writerUtf8JsonWriter
The System.Text.Json.Utf8JsonWriter to write to.
valueHierarchicalKey
The value to convert. The value of System.Text.Json.Serialization.JsonConverter.HandleNull determines if the converter handles null values.
optionsJsonSerializerOptions
The options to use when writing the value.