-Fixed deserializing relative Uris

This commit is contained in:
James Newton-King
2012-05-30 18:25:16 +12:00
parent 0c8a11b3c1
commit d8017e517b
2 changed files with 20 additions and 1 deletions
@@ -330,7 +330,7 @@ namespace Newtonsoft.Json.Utilities
if (targetType == typeof (Guid))
return new Guid((string) initialValue);
if (targetType == typeof (Uri))
return new Uri((string) initialValue);
return new Uri((string) initialValue, UriKind.RelativeOrAbsolute);
if (targetType == typeof (TimeSpan))
#if !(NET35 || NET20 || SILVERLIGHT || PORTABLE)
return TimeSpan.Parse((string) initialValue, CultureInfo.InvariantCulture);