fix json encoding issue

This commit is contained in:
Mike Hamburg
2010-11-26 16:30:49 -08:00
parent 4e37892f62
commit b87f993a0b
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,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]) {