We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 900a1fa + a75d34b commit 6e9690aCopy full SHA for 6e9690a
LearnositySDK/Utils/JsonObject.cs
@@ -5,6 +5,7 @@
5
using System.Collections;
6
using Newtonsoft.Json;
7
using Newtonsoft.Json.Linq;
8
+using System.Globalization;
9
10
namespace LearnositySDK.Utils
11
{
@@ -626,7 +627,7 @@ public string toJson()
626
627
}
628
else if (this.df.ContainsKey(key))
629
- sb.Append(this.df[key].ToString());
630
+ sb.Append(this.df[key].ToString("R", CultureInfo.InvariantCulture));
631
632
else if (this.ds.ContainsKey(key))
633
@@ -677,7 +678,7 @@ public string toJson()
677
678
sb.Append(",");
679
680
- sb.Append(Json.encode(item.Key) + ":" + item.Value.ToString());
681
+ sb.Append(Json.encode(item.Key) + ":" + item.Value.ToString("R", CultureInfo.InvariantCulture));
682
683
index++;
684
0 commit comments