# UniqueKeyConverter.WriteJson(JsonWriter, object?, JsonSerializer)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.uniquekeyconverter/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.uniquekeyconverter/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Core/Serialization/OrleansJsonSerializer.cs#L295-L307)

```csharp
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
```

Writes the JSON representation of the object.

### Parameters

- `writer` (`JsonWriter`): The `Newtonsoft.Json.JsonWriter` to write to.
- `value` (`object?`): The value.
- `serializer` (`JsonSerializer`): The calling serializer.
