Skip to content

Commit

Permalink
Merge pull request #8 from groenlid/newtonsoft_ienumerable_bug
Browse files Browse the repository at this point in the history
Fixing JArray.GetEnumerator() Method Not Found Bug
  • Loading branch information
gonzalozawa committed Feb 24, 2016
2 parents b42577f + 8c0d650 commit 648559e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LearnositySDK/Utils/JsonObjectFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static JsonObject fromJArray(JArray jArray)

int index = 0;

foreach (JToken item in jArray)
foreach (JToken item in (IEnumerable<JToken>)jArray)
{
jsonObject = JsonObjectFactory.fromJToken(jsonObject, index.ToString(), item);
index++;
Expand Down

0 comments on commit 648559e

Please sign in to comment.