# Class SystemStringEnumConverter OptimaJet.Workflow.Core.Designer.SystemStringEnumConverter Converts JSON strings to and from enumeration values of type `T`. Deserialization parses enumeration names without regard to case, while serialization uses [Enum.ToString()](https://learn.microsoft.com/dotnet/api/system.enum.tostring#system-enum-tostring). Namespace: [OptimaJet.Workflow.Core.Designer](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/) ```csharp public class SystemStringEnumConverter : JsonConverter where T : struct, Enum ``` ## Type Hierarchy - [JsonConverter](https://learn.microsoft.com/dotnet/api/system.text.json.serialization.jsonconverter) - [JsonConverter](https://learn.microsoft.com/dotnet/api/system.text.json.serialization.jsonconverter-1) - SystemStringEnumConverter Current type ## Methods `public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)` Reads a JSON string and parses it as an enumeration value of type `T` without regard to case. ### Parameters | Name | Type | Description | | --- | --- | --- | | `reader` | `Utf8JsonReader` | The [Utf8JsonReader](https://learn.microsoft.com/dotnet/api/system.text.json.utf8jsonreader) positioned at the value to read. | | `typeToConvert` | `Type` | The [Type](https://learn.microsoft.com/dotnet/api/system.type) being converted. | | `options` | `JsonSerializerOptions` | The [JsonSerializerOptions](https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions) for the current deserialization operation. | ### Returns | Type | Description | | --- | --- | | `{T}` | The enumeration value parsed from the JSON string. | ### Exceptions | Type | Description | | --- | --- | | `JsonException` | The current token is not [JsonTokenType.String](https://learn.microsoft.com/dotnet/api/system.text.json.jsontokentype#system-text-json-jsontokentype-string), or its value cannot be parsed as `T`. | `public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)` Writes an enumeration value as a JSON string containing the result of [Enum.ToString()](https://learn.microsoft.com/dotnet/api/system.enum.tostring#system-enum-tostring). ### Parameters | Name | Type | Description | | --- | --- | --- | | `writer` | `Utf8JsonWriter` | The [Utf8JsonWriter](https://learn.microsoft.com/dotnet/api/system.text.json.utf8jsonwriter) to which the value is written. | | `value` | `{T}` | The enumeration value to write. | | `options` | `JsonSerializerOptions` | The [JsonSerializerOptions](https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions) for the current serialization operation. | [Previous RequestElements](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/RequestElements/) [Next SystemTextDefaultValueJsonConverter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/SystemTextDefaultValueJsonConverter/)