# ActivationIdConverter Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.activationidconverter/)

## Read(Utf8JsonReader, Type, JsonSerializerOptions) {#read-ref-system-text-json-utf8jsonreader-system-type-system-text-json-jsonserial-411c2b71}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.activationidconverter/methods/read-ref-system-text-json-utf8jsonreader-system-type-system-text-json-jsonserial-411c2b71/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/ActivationId.cs#L110)

```csharp
public override ActivationId Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
```

Reads and converts the JSON to type `T`.

### Parameters

- `reader` (`Utf8JsonReader`): The reader.
- `typeToConvert` (`Type`): The type to convert.
- `options` (`JsonSerializerOptions`): An object that specifies serialization options to use.

### Returns

The converted value.

## Write(Utf8JsonWriter, ActivationId, JsonSerializerOptions) {#write-system-text-json-utf8jsonwriter-orleans-runtime-activationid-system-text-j-6d2789dc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.activationidconverter/methods/write-system-text-json-utf8jsonwriter-orleans-runtime-activationid-system-text-j-6d2789dc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/ActivationId.cs#L115-L120)

```csharp
public override void Write(Utf8JsonWriter writer, ActivationId value, JsonSerializerOptions options)
```

Writes a specified value as JSON.

### Parameters

- `writer` (`Utf8JsonWriter`): The writer to write to.
- `value` (`ActivationId`): The value to convert to JSON.
- `options` (`JsonSerializerOptions`): An object that specifies serialization options to use.
