From eec87d257d6d1affd9e23f63fb9cdd72efe7a0ee Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Wed, 9 Dec 2015 13:03:56 +1300 Subject: [PATCH] -Derp --- Src/Newtonsoft.Json/JsonConvert.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Newtonsoft.Json/JsonConvert.cs b/Src/Newtonsoft.Json/JsonConvert.cs index 59ddf658..517f6e54 100644 --- a/Src/Newtonsoft.Json/JsonConvert.cs +++ b/Src/Newtonsoft.Json/JsonConvert.cs @@ -536,7 +536,7 @@ namespace Newtonsoft.Json /// The type of the object to serialize. /// The object to serialize. /// A JSON string representation of the object. - public static string SerializeObject(object value) + public static string SerializeObject(T value) { return SerializeObject(value, typeof(T), (JsonSerializerSettings)null); } @@ -563,9 +563,9 @@ namespace Newtonsoft.Json /// /// A JSON string representation of the object. /// - public static string SerializeObject(object value, Formatting formatting) + public static string SerializeObject(T value, Formatting formatting) { - return SerializeObject(value, typeof(T), (JsonSerializerSettings)null); + return SerializeObject(value, typeof(T), formatting, (JsonSerializerSettings)null); } ///