Merge pull request #14101 from neersighted/hotfix

Make JSON.stringify encode numbers properly
This commit is contained in:
tkdrg
2015-12-27 18:35:03 -03:00
+1 -1
View File
@@ -12,7 +12,7 @@
/datum/jsonHelper/proc/WriteValue(list/json, value)
. = json
if(isnum(value))
json += value // Consider num2text(value, 20) for maximum accuracy.
json += num2text(value, 20)
else if(isnull(value))
json += "null"
else if(istext(value))