# StreamIdJsonConverter.WriteAsPropertyName(Utf8JsonWriter, StreamId, JsonSerializerOptions)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamidjsonconverter/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.runtime.streamidjsonconverter/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/StreamId.cs#L337)

```csharp
public override void WriteAsPropertyName(Utf8JsonWriter writer, StreamId value, JsonSerializerOptions options)
```

Writes a dictionary key as a JSON property name.

### Parameters

- `writer` (`Utf8JsonWriter`): The `System.Text.Json.Utf8JsonWriter` to write to.
- `value` (`StreamId`): The value to convert. The value of `System.Text.Json.Serialization.JsonConverter-1.HandleNull` determines if the converter handles `null` values.
- `options` (`JsonSerializerOptions`): The options to use when writing the value.
