diff --git a/Ooui/JsonConvert.cs b/Ooui/JsonConvert.cs index fc8e86a..2cde941 100644 --- a/Ooui/JsonConvert.cs +++ b/Ooui/JsonConvert.cs @@ -76,14 +76,17 @@ namespace Ooui if (value is double) { w.Write (((double)value).ToString (icult)); + return; } if (value is int) { w.Write (((int)value).ToString (icult)); + return; } if (value is float) { w.Write (((float)value).ToString (icult)); + return; } w.Write (Newtonsoft.Json.JsonConvert.SerializeObject (value));