Merge pull request #40 from RobertLarsen/master

Fixed JSON format issue
pull/17/head
bitwiseshiftleft 13 years ago
commit 61228e7c23

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

Loading…
Cancel
Save