Skip to content

Commit becaee3

Browse files
authored
Merge pull request #220 from PaulKlein/issue-28
Fix Map array deserialisation in Newtonsoft serialiser
2 parents 7d1f543 + bc098b5 commit becaee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphQL.Client.Serializer.Newtonsoft/MapConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ private TDictionary ReadDictionary<TDictionary>(JToken element) where TDictionar
5151
return result;
5252
}
5353

54-
private IEnumerable<object> ReadArray(JToken element)
54+
private IEnumerable<object> ReadArray(JArray element)
5555
{
56-
foreach (var item in element.Values())
56+
foreach (var item in element)
5757
{
5858
if (IsUnsupportedJTokenType(item.Type))
5959
continue;

0 commit comments

Comments
 (0)