diff --git a/core/convenience.js b/core/convenience.js index de949404..b69a2e7d 100644 --- a/core/convenience.js +++ b/core/convenience.js @@ -122,7 +122,7 @@ if (!i.match(/^[a-z0-9]+$/i)) { throw new sjcl.exception.invalid("json encode: invalid property name"); } - out += comma + i + ':'; + out += comma + '"' + i + '"' + ':'; comma = ','; switch (typeof obj[i]) {