diff --git a/code/modules/json/json.dm b/code/modules/json/json.dm index dc48926021c..d3b80d6792d 100644 --- a/code/modules/json/json.dm +++ b/code/modules/json/json.dm @@ -12,7 +12,7 @@ /datum/jsonHelper/proc/WriteValue(list/json, value) . = json if(isnum(value)) - json += num2text(value, 20) + json += value // Consider num2text(value, 20) for maximum accuracy. else if(isnull(value)) json += "null" else if(istext(value)) diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm index c713e14bb45..652bd9ad146 100644 --- a/code/modules/nano/nanoui.dm +++ b/code/modules/nano/nanoui.dm @@ -314,7 +314,7 @@ var/list/send_data = get_send_data(data) // Get the data to send. // Send the new data to the recieveUpdate() Javascript function. - user << output(JSON.stringify(send_data), "[window_id].browser:receiveUpdate") + user << output(url_encode(JSON.stringify(send_data)), "[window_id].browser:receiveUpdate") /**