From 29ae144d8ea5c1fae0a7c836f9e0cba2e9ce0771 Mon Sep 17 00:00:00 2001 From: "Matt G. Ellis" Date: Sun, 16 Nov 2014 20:49:29 -0800 Subject: [PATCH] Removing unessecary call to MapClrMemberNameToJsonFieldName. The keys in the IDictionary instances in the GetCache are JSON Field names so the call to MapClrMemberNameToJsonFieldName in TrySerializeUnknownTypes is unnesecary at best and incorrect at worst as the input we were passing to that function was not a CLR Member Name but rather a JSON Field Name. --- Octokit/SimpleJson.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Octokit/SimpleJson.cs b/Octokit/SimpleJson.cs index f0557e1f..11433a62 100644 --- a/Octokit/SimpleJson.cs +++ b/Octokit/SimpleJson.cs @@ -1507,7 +1507,7 @@ namespace Octokit foreach (KeyValuePair getter in getters) { if (getter.Value != null) - obj.Add(MapClrMemberNameToJsonFieldName(getter.Key), getter.Value(input)); + obj.Add(getter.Key, getter.Value(input)); } output = obj; return true;