Merge pull request #40 from RobertLarsen/master

Fixed JSON format issue
This commit is contained in:
bitwiseshiftleft 2011-11-25 10:57:38 -08:00
commit 61228e7c23

View File

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