# Class SystemTextDefaultValueJsonConverter OptimaJet.Workflow.Core.Designer.SystemTextDefaultValueJsonConverter Provides a [JsonConverter](https://learn.microsoft.com/dotnet/api/system.text.json.serialization.jsonconverter-1) that converts [CodeActionParameterDefinition.DefaultValue](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionParameterDefinition/) between its string representation and JSON values. Namespace: [OptimaJet.Workflow.Core.Designer](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/) ```csharp public class SystemTextDefaultValueJsonConverter : JsonConverter ``` ## 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) - SystemTextDefaultValueJsonConverter Current type ## Methods `public override string? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)` Reads a JSON value into the string representation used by [CodeActionParameterDefinition.DefaultValue](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionParameterDefinition/). ### 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 target [Type](https://learn.microsoft.com/dotnet/api/system.type). | | `options` | `JsonSerializerOptions` | The [JsonSerializerOptions](https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions) for the deserialization operation. | ### Returns | Type | Description | | --- | --- | | `String` | The JSON string value, the raw JSON text for a non-string value, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the current token is [JsonTokenType.Null](https://learn.microsoft.com/dotnet/api/system.text.json.jsontokentype#system-text-json-jsontokentype-null). | `public override void Write(Utf8JsonWriter writer, string? value, JsonSerializerOptions options)` Writes the JSON representation of [CodeActionParameterDefinition.DefaultValue](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionParameterDefinition/). ### Parameters | Name | Type | Description | | --- | --- | --- | | `writer` | `Utf8JsonWriter` | The [Utf8JsonWriter](https://learn.microsoft.com/dotnet/api/system.text.json.utf8jsonwriter) that receives the JSON value. | | `value` | `String` | The [string](https://learn.microsoft.com/dotnet/api/system.string) value to serialize, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) to write JSON [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null). | | `options` | `JsonSerializerOptions` | The [JsonSerializerOptions](https://learn.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions) for the serialization operation. | [Previous SystemStringEnumConverter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/SystemStringEnumConverter-T/) [Next SystemTextStringTypeConverter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/SystemTextStringTypeConverter/)