diff --git a/src/core/Synapse.Integration/Serialization/Converters/FilteredExpandoObjectConverter.cs b/src/core/Synapse.Integration/Serialization/Converters/FilteredExpandoObjectConverter.cs
index 152717de1..6c9654be0 100644
--- a/src/core/Synapse.Integration/Serialization/Converters/FilteredExpandoObjectConverter.cs
+++ b/src/core/Synapse.Integration/Serialization/Converters/FilteredExpandoObjectConverter.cs
@@ -17,7 +17,6 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Serialization;
using System.Dynamic;
namespace Synapse.Integration.Serialization.Converters
@@ -30,30 +29,16 @@ public class FilteredExpandoObjectConverter
: ExpandoObjectConverter
{
- ///
- /// Initializes a new
- ///
- /// The to use
- public FilteredExpandoObjectConverter(NamingStrategy namingStrategy = null)
- {
- this.NamingStrategy = namingStrategy ?? new CamelCaseNamingStrategy();
- }
-
///
public override bool CanWrite => true;
- ///
- /// Gets the to use
- ///
- protected NamingStrategy NamingStrategy { get; }
-
///
public override void WriteJson(JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer)
{
var expando = (IDictionary)value;
var dictionary = expando
.Where(p => p.Value is not null)
- .ToDictionary(p => this.NamingStrategy.GetPropertyName(p.Key, false), p => p.Value);
+ .ToDictionary(p => p.Key, p => p.Value);
serializer.Serialize(writer, dictionary);
}