Skip to content

Commit

Permalink
#75 Ensure that the serialize and deserialize worked on simple objects
Browse files Browse the repository at this point in the history
  • Loading branch information
linvi committed Aug 14, 2016
1 parent 62251d1 commit 90c220b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tweetinvi/JsonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Tweetinvi.Core.Factories;
using Tweetinvi.Logic.JsonConverters;
using Tweetinvi.Models;
using Tweetinvi.Models.DTO;

Expand Down Expand Up @@ -145,7 +146,7 @@ public static T ConvertJsonTo<T>(this string json) where T : class

try
{
return JsonConvert.DeserializeObject<T>(json);
return JsonConvert.DeserializeObject<T>(json, JsonPropertiesConverterRepository.Converters);
}
catch (Exception ex)
{
Expand Down

0 comments on commit 90c220b

Please sign in to comment.