diff --git a/iothub/device/samples/convention-based-samples/TemperatureController/SystemTextJsonPayloadSerializer.cs b/iothub/device/samples/convention-based-samples/TemperatureController/SystemTextJsonPayloadSerializer.cs
index 0f71e39c59..c3cad86935 100644
--- a/iothub/device/samples/convention-based-samples/TemperatureController/SystemTextJsonPayloadSerializer.cs
+++ b/iothub/device/samples/convention-based-samples/TemperatureController/SystemTextJsonPayloadSerializer.cs
@@ -33,9 +33,7 @@ public override string SerializeToString(object objectToSerialize)
///
public override T DeserializeToType(string stringToDeserialize)
{
- var jsonOptions = new JsonSerializerOptions();
- jsonOptions.Converters.Add(new ObjectToInferredTypesConverter());
- return JsonSerializer.Deserialize(stringToDeserialize, jsonOptions);
+ return JsonSerializer.Deserialize(stringToDeserialize);
}
///