Skip to content

Commit 496b305

Browse files
committed
Fixed can convert check in custom JSON converter
1 parent 7e7c3c3 commit 496b305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FroniusSolarClient/Extensions/JsonExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RequestArgumentsConverter<T> : JsonConverter
1414
{
1515
public override bool CanConvert(Type objectType)
1616
{
17-
return (objectType == typeof(T));
17+
return (objectType == typeof(Dictionary<string, List<string>>));
1818
}
1919

2020
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

0 commit comments

Comments
 (0)