# Class NewtonsoftDefaultValueJsonConverter OptimaJet.Workflow.Core.Designer.NewtonsoftDefaultValueJsonConverter Provides a JsonConverter 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 NewtonsoftDefaultValueJsonConverter : JsonConverter ``` ## Type Hierarchy - JsonConverter - NewtonsoftDefaultValueJsonConverter Current type ## Methods `public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)` Writes the JSON representation of [CodeActionParameterDefinition.DefaultValue](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CodeActionParameterDefinition/). ### Parameters | Name | Type | Description | | --- | --- | --- | | `writer` | `JsonWriter` | The JsonWriter that receives the JSON value. | | `value` | `Object` | The [string](https://learn.microsoft.com/dotnet/api/system.string) value to serialize. | | `serializer` | `JsonSerializer` | The JsonSerializer performing the serialization. | `public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)` 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` | `JsonReader` | The JsonReader positioned at the value to read. | | `objectType` | `Type` | The target [Type](https://learn.microsoft.com/dotnet/api/system.type). | | `existingValue` | `Object` | The existing value supplied by `serializer`; this converter does not use it. | | `serializer` | `JsonSerializer` | The JsonSerializer performing the deserialization; this converter does not use it. | ### Returns | Type | Description | | --- | --- | | `Object` | The string representation of the JSON value, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the current token is JsonToken.Null. | `public override bool CanConvert(Type objectType)` Determines whether `objectType` represents a [string](https://learn.microsoft.com/dotnet/api/system.string). ### Parameters | Name | Type | Description | | --- | --- | --- | | `objectType` | `Type` | The [Type](https://learn.microsoft.com/dotnet/api/system.type) to evaluate. | ### Returns | Type | Description | | --- | --- | | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if `objectType` represents a [string](https://learn.microsoft.com/dotnet/api/system.string); otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | [Previous IDesignerAction](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/IDesignerAction/) [Next NewtonsoftStringTypeConverter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Designer/NewtonsoftStringTypeConverter/)