diff --git a/LearnositySDK/Utils/JsonObject.cs b/LearnositySDK/Utils/JsonObject.cs index bdd2fd0..6797f7c 100755 --- a/LearnositySDK/Utils/JsonObject.cs +++ b/LearnositySDK/Utils/JsonObject.cs @@ -5,6 +5,7 @@ using System.Collections; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using System.Globalization; namespace LearnositySDK.Utils { @@ -626,7 +627,7 @@ public string toJson() } else if (this.df.ContainsKey(key)) { - sb.Append(this.df[key].ToString()); + sb.Append(this.df[key].ToString("R", CultureInfo.InvariantCulture)); } else if (this.ds.ContainsKey(key)) { @@ -677,7 +678,7 @@ public string toJson() sb.Append(","); } - sb.Append(Json.encode(item.Key) + ":" + item.Value.ToString()); + sb.Append(Json.encode(item.Key) + ":" + item.Value.ToString("R", CultureInfo.InvariantCulture)); index++; }