diff --git a/ubuntuone.js b/ubuntuone.js index fa08085..2b9273f 100644 --- a/ubuntuone.js +++ b/ubuntuone.js @@ -68,6 +68,11 @@ http.createServer(function(request, response) else { value = pieces[1]; + + if (value == '') + { + value = null; + } } line = ''; @@ -82,7 +87,16 @@ http.createServer(function(request, response) payload += ','; } - payload += '"' + variable + '":"' + value + '"'; + payload += '"' + variable + '":'; + + if (value == null) + { + payload += '""'; + } + else + { + payload += '"' + value + '"'; + } variable = ''; value = '';